Select to view content in your preferred language

Problems converting SHP to KML files

5022
7
06-26-2018 12:27 PM
Labels (1)
HilaryAndersen
Emerging Contributor

I'm having problems converting shapefiles to kml files using the toolbox - conversion tools - to kml - layer to kml function in ArcGIS 10.4.1. All of my layers are projected to WGS_North_American_1983, but only one of my layers opens accurately in GoogleEarth. The other layers are all empty when opened in GoogleEarth, but have long attribute tables in the original SHP file. 


Help is appreciated!

0 Kudos
7 Replies
HilaryAndersen
Emerging Contributor

Converting the projection to WGS1984 doesn't solve the issue either.

0 Kudos
SteveCole
Honored Contributor

Google Earth Pro (which is free) can natively import ESRI shapefiles. You can always try importing your shapefile that way and then exporting it out as a KML/KMZ file.

Steve

HilaryAndersen
Emerging Contributor

Hi Steve, 

Having the same problem importing .SHP files into Google Earth Pro. The files appear to be empty. Other workaround ideas? File is really small - has only two rows in the attribute table.

Thanks,


Hilary

0 Kudos
SteveCole
Honored Contributor

Hillary, are you expecting only two features in the shapefile? I only ask that because sometimes the shapefile table can have a different number of records than the file with the feature representations and that can mess up the shapefile. Is is a shapefile you can ZIP up and share here to Geonet?

Steve

0 Kudos
HilaryAndersen
Emerging Contributor

Hi Steve, Here is the zipped file. Please let me know if you have any problems accessing the file. I'll be curious to hear your thoughts on what could be causing the problems. 


Thank you!

0 Kudos
SteveCole
Honored Contributor

Sorry for the delay- your link is blocked by my work firewall. I looked at the shapefile and I think that's where the problem is. Your shapefile has a defined projection of Web Mercator, and I'm guessing Google Earth doesn't know what to do with that projection. In Arcmap, I gave my data frame a world geographic projection (WGS1984) and then exported your original shapefile using the data frame projection for the shapefile projection instead of its Web Mercator. I was then able to successfully import your shapefile into Google Earth Pro without issue.

Hope that helps!

Steve

HilaryAndersen
Emerging Contributor

Thank you Steve! This appears to have solved my issue!