Answers for "How can I optimize a very large shapefile (100+ MB) in order to convert it into a reasonably-sized KML (small enough to easily open/view in Google Earth)?" https://knowledge.亚搏在线safe.com/questions/74418/how-can-i-optimize-a-very-large-shapefile-100-mb-i.html The latest answers for the question "How can I optimize a very large shapefile (100+ MB) in order to convert it into a reasonably-sized KML (small enough to easily open/view in Google Earth)?" Answer by arnold_bijlsma https://knowledge.safe.com/answers/74423/view.html

In the KMLStyler, there is an option Allow Unique Styles Per Feature, where you specify whether you want to have one single style for all features or a style for every feature, i.e.10 lines of code in the header of your KML file, or 10 lines of code for every feature!

Although having one single style is often insufficient, you could create a separate KML for each style class, e.g.one for each interval or each subtype, unticking that aforementioned option!

Sat, 14 Jul 2018 11:20:40 GMT arnold_bijlsma
Answer by arnold_bijlsma https://knowledge.safe.com/answers/74422/view.html

To reduce the size of a file regardless of its format, you can do a few things:

  • Reduce the number of attributes, e.g.using the AttributeKeeper
  • Simplify your geometries, e.g.using the Generalizer
  • Convert your file into a (dumb) image.

Any of these will reduce the quality of your data.If you don't want that, you can split the file into a collection of files/tiles.See https://knowledge.safe.com/articles/887/optimizing-large-datasets-for-kml-and-google-earth.html (Beware: this is quite advanced that took me a while to master)

Sat, 14 Jul 2018 10:57:53 GMT arnold_bijlsma