Reducing Size of KML file (After converting from Shapefile)

المشرف العام

Administrator
طاقم الإدارة
I have a shape-file of size 224 mega byte. I am using ArcGis to convert it to a KML file. The process involves converting the shapefile to a feature layer and then converting the layer to KML.

An alternative method that I have tried is using ogr2ogr.

In both the cases, the kml file produced is around 500 mega bytes.

I need it to be less than 250 mega bytes, so I can import it as a Google Fusion table.

I was informed that one of the best ways to cut size is to reduce precision of the coordinates to 5 decimal places (from its current 10 or so).

How do I go about changing the decimal places using either ogr2ogr or ArcGis? Is there some other software that may help in this? Also, are there any other strategies I may use to reduce the size of the KML file.

I tried using Notepad++ to open the KML file and then use regular expressions to change coordinate precision but for some reason this method is not working. If I make the change and try and save the file, all the data gets deleted and the kml file size changes to 0 bytes.

Edit: An alternative strategy that I was thinking of was to split my shapefiles into 2 or 3 files and convert them to kml separately, upload them to google fusion tables and then append those. However, I am not sure of two things. 1) How to split shapefiles into 2 or 3 smaller shapefiles?2) Whether I can easily append fusion tables together to create a larger fusion table?



أكثر...
 
أعلى