Skip to main content
Question

How to convert KML to DWG with labeling?

  • December 16, 2015
  • 4 replies
  • 112 views

Forum|alt.badge.img

I want to convert a KML file with labels to Cad format.

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.

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+62

You can use a LabelPointReplacer to place texts on point locations, the text label itself can be taken from a KML attribute (most likely kml_name but that depends on your data).


Forum|alt.badge.img
  • Author
  • December 16, 2015

You can use a LabelPointReplacer to place texts on point locations, the text label itself can be taken from a KML attribute (most likely kml_name but that depends on your data).

Thank you for you reply. When FME read KML it creates 14 readers like sound cue, folders, document, tour handler etc . I join all the readers to writers it creates a CAD file with points and lines. But i do not show Labels. In fact i dont know how to use LabelPointReplacer . I tried to put inbetween reader and writer but didn't get good results.

I am new bee kindly ignore irrelevants .


redgeographics
Celebrity
Forum|alt.badge.img+62

Thank you for you reply. When FME read KML it creates 14 readers like sound cue, folders, document, tour handler etc . I join all the readers to writers it creates a CAD file with points and lines. But i do not show Labels. In fact i dont know how to use LabelPointReplacer . I tried to put inbetween reader and writer but didn't get good results.

I am new bee kindly ignore irrelevants .

Placemark is probably the only one you need to work with (but again, it depends on your data), connect that to a LabelPointReplacer, then set the LabelPointReplacer parameters to use an attribute, e.g. kml_name, as label source and specify a text size. This size would be in "map units" so keep that in mind (KML is always in LL84 coordinate system, so you may want to reproject to a more meaningful coordinate system as the first step in your process.

Also, by connecting Inspectors to your input feature types, or viewing the KML in the Data Inspector, you can get a better idea of how FME handles KML and what's where.


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • December 16, 2015

Thank you for you reply. When FME read KML it creates 14 readers like sound cue, folders, document, tour handler etc . I join all the readers to writers it creates a CAD file with points and lines. But i do not show Labels. In fact i dont know how to use LabelPointReplacer . I tried to put inbetween reader and writer but didn't get good results.

I am new bee kindly ignore irrelevants .

I don't know that you need to connect folders and documents. I don't think they will do much in the DWG. What you need to do to add a LabelPointReplacer is click on the connection through which point features move. Then type "labelpointreplacer" and press enter. This will add a LabelPointReplacer transformer. You can open that and enter/select the label and label height. Hope this helps.