Skip to main content
Question

How to convert KML to DWG with labeling?

  • December 16, 2015
  • 4 replies
  • 63 views

Forum|alt.badge.img

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

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

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
redgeographics wrote:

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+49
murray901 wrote:

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+44
  • Safer
  • December 16, 2015
murray901 wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings