Skip to main content
Question

kml placemark name as output dwg layer name

  • 17 June 2024
  • 5 replies
  • 58 views

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

Userlevel 5
Badge +36

Hi @alanaliberti 

 

Please, could you share the kml file?

 

Thanks in Advance,

Danilo

Badge +2

Sure thing, there you go Danilo

Thank you

Userlevel 6
Badge +26

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.

Badge +2

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

 

Userlevel 6
Badge +26

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