Skip to main content
Question

kml placemark name as output dwg layer name


alanaliberti
Contributor
Forum|alt.badge.img+2

Hello all

I’m trying to achieve the above, so far I’m struggling on how to find out the KML reader ‘placemark name’ property, to write it as a DWG layer name.

Could anyone point me out on how to do that? Thanks

5 replies

danilo_fme
Evangelist
Forum|alt.badge.img+44
  • Evangelist
  • June 17, 2024

Hi @alanaliberti 

 

Please, could you share the kml file?

 

Thanks in Advance,

Danilo


alanaliberti
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • June 17, 2024

Sure thing, there you go Danilo

Thank you


liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • June 18, 2024

If you look in the Format Attributes section of the reader, there are a lot of kml attributes that can be exposed, including kml_name which may be the one you are looking for.


alanaliberti
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • June 18, 2024

Yes, this is the one I’m looking into:

 

but then I get this error when I run it:

 

And then nothing is converted. if I use a static layer name it goes smoothly

 

thanks for your help

 


liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • June 18, 2024

That Unexpected Input warning normally points to an issue with the Reader, not the writer. It is saying that the file you are reading in has 9 features that could be read but were not because they are in the feature types StyleMap and Style, not Placemarks. If you wanted to get those features you could try updating the reader and its feature types to include those or try adding a new kml reader that is Single Merged Feature Type instead of Individual Feature Types. If you were expecting placemark features, then there could be another issue.


Reply


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