Question

Transforming 1 Geometry layer and 2 Text layers from CAD to GeoJSON File


Hello,

I have a DWG file with rooms drawn as closed polylines (all on one layer), and within each polyline, there are 2 text labels (on 2 different layers).

I'm trying to transform these 3 layers into a single GeoJSON file, where the room polylines would populate the "geometry", and the 2 text labels would populate 2 different "properties" ('id" and "label").

I tried doing this using the FeatureMerger tool, however this doesn't produce the result I'm looking for, as the attributes from the Supplier ("id") are merged. The current result is that all the features in the GeoJSON have the same value for "id", which is not what I'm trying to achieve. I simply want to transform all the rooms to geometries and the 2 text labels to properties of the geometries.

I'm sure I'm missing something simple, but is there a way to get the result I'm looking for? Here's a screenshot of my current workflow below:


3 replies

Hi @chashemi, would it be possible for you to share your workspace .fmw file and some sample data, so we can take a closer look at it? Thanks.

Userlevel 4
Badge +13

This is a definite classic case of CAD->GIS (and your timing couldn't be better because we're preparing for a webinar on this topic https://www.safe.com/webinars/how-to-automate-cad-gis-integration/ for next Wed, May 13). I'd love to show this example if you're able to share data with us.

Actually, without seeing the data it is hard to know exactly the best way to get the results you seek, so if you can share screenshots or ideally the input, that would help. But from your description, I'd suggest that PointOnAreaOverlayer would be a safer way to combine things, and if you renamed the text string attributes from your text layers ahead of time, it should combine everything into what you need. NO matter what I may show an example like this at the webinar.

 

Thanks.

Hello @daleatsafe, @alyssaatsafe - thanks very much for your help and suggestions. The PointOnAreaOverlayer transformer was the missing link.

Reply