Monday, 6 May 2019

arcgis desktop - Converting KML To Layer using ArcPy losing objects?


I am trying to a convert kml file to a layer using python. This is my code:


import arcpy 
arcpy.KMLToLayer_conversion('C:\kml\\result.kml', 'C:\kml', 'result')

But the layer has lost a lot of objects as compared to the layer converted by Conversion tools -> kmltolayer


I attach 2 screenshots:


layer, which was converted by Convertion tools -> kmltolayer


layer, which was converted by python script



What could be the problem?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...