I have several KML files and each KML is being parsed, turned into a geometry with PostGIS' ST_GeomFromKML()
and saved to a database. This database is parsed and uses ST_AsPng()
to process each geometry at a specific zoom level and saves the PNGs locally. The problem is that each zoom level has to be done individually and each zoom level takes a long time. It takes specially long since its querying the database.
Any idea on how to speed this process up?
As of now, to generate the PNG tiles I'm using Java with multiple threads doing queries for ST_asPng()
.