Select to view content in your preferred language

Import KML/KMZ to CityEngine Error

2283
6
Jump to solution
07-24-2023 09:41 AM
TelmaFernandes2
Emerging Contributor

Hello everyone.

I am trying to import a KMZ file into CityEngine but when I add it nothing happens. I went to check the Logs file  and I get this error: java.io.IOException: KML Importer: no valid placemarks detected, file is probably too old (< KML v2.1) or corrupt

The same file I can open without problems in ArcGIS Pro (3.0.3). The KMZ file comes from Google Earth but I also tested converting a polygon to KMZ in ArcGIS Pro and even that file I can't open in CE.
Any suggestions on how to overcome it?

Thank you

 

0 Kudos
1 Solution

Accepted Solutions
SimonHaegler
Esri Contributor

No, unfortunately CityEngine does not read polygon features from KMZ/KML at this time, as documented in the help: https://doc.arcgis.com/en/cityengine/latest/help/help-import-kmz-kml.htm

We only read read 3d models as described here: https://developers.google.com/kml/documentation/models

I recommend to convert the KMZ to a FileGDB in ArcGIS Pro and then import this one into CityEngine.

Best,
Simon

View solution in original post

0 Kudos
6 Replies
SimonHaegler
Esri Contributor

Hi,

if possible, could you share one sample file with us so we can debug it? We will treat the data confidentially of course.

Best,
Simon

0 Kudos
TelmaFernandes2
Emerging Contributor

Hi Simon, 

It is attached. The CE version I am using is 2023.0
The kmz file is in the same coordinate system as the scene created in CE.

Thank you

0 Kudos
SimonHaegler
Esri Contributor

Thanks, we'll take a look!

0 Kudos
SimonHaegler
Esri Contributor

Hi again,

the placemarks in your sample file are unfortunately not supported (polygons etc) by CityEngine. CityEngine only reads placemarks which reference Collada assets at this time.

Maybe you can convert the KMZ to a FileGDB in Pro and import this one in CityEngine?

Best,
Simon

0 Kudos
TelmaFernandes2
Emerging Contributor

Hi Simon,

So..To import in kml/kmz to CE is it only supported if it is in dot? Does it not accept polygon geometry?

 

Best,

Telma

0 Kudos
SimonHaegler
Esri Contributor

No, unfortunately CityEngine does not read polygon features from KMZ/KML at this time, as documented in the help: https://doc.arcgis.com/en/cityengine/latest/help/help-import-kmz-kml.htm

We only read read 3d models as described here: https://developers.google.com/kml/documentation/models

I recommend to convert the KMZ to a FileGDB in ArcGIS Pro and then import this one into CityEngine.

Best,
Simon

0 Kudos