Skip to main content
Question

Projecting CSV on polygons

  • November 11, 2016
  • 2 replies
  • 15 views

All,

I am thinking of combining geometries and CSV data. This is the case: I have 2D polygons with among others a linking attribute say attr1. For example geometry 1, geometry 2. (10000 geometries) I like to project an CSV file (10000 records) without geometries or coordinates in an 0/1/M:0/1/M as points (random) on the polygons bases on the same value of attr1. So polygon 1 point 2 and 3 and polygon 2 point 6 and polygon 3 no points etc.

What is the easiest/fastest way to calculate?

I am using FME2014 SP2.

Thanks in advance!

Maarten

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+62

First part is easy: the Joiner would be the best way to do this. It will create a list in case there's a 1:N relationship and a _matched_records attribute showing how many records matched.

Next step is to randomly generate points within the polygons, there is a RandomPointGenerator custom transformer in the FME Store and it's listed as supported in FME 2014 SP3 and higher. You could give that a try...

Hope this helps.

 


  • Author
  • November 11, 2016

Thank you @redgeographics :) I will try this and let you know! Maarten