[mapserver-users] how to create vectiles from geojson?

Lars Fricke fricke at gisberater.com
Wed Feb 4 23:50:44 PST 2015


Hello Zach,

I'm not sure if I understood completely what you need. If you need to 
get a large GeoJSON into a webserver (be it WMS (rendered image tiles) 
or WFS (vector data in a specified bounding box and format)), I'd try 
the following ways:
1. a) Convert the GeoJSON to Shape using QGIS (make sure displaying 
loaded data files automatically is off)
1. b) Import Shapefile into PostGIS DB (PostgreSQL with activated 
PostGIS extension)
1 c) Use this DB as source for Mapserver 
(http://mapserver.org/input/vector/postgis.html) and do any WFS or WMS 
requests needed, Mapserver will handle the zooms and bounds. You may 
want to use OpenLayers or Leaflet (or something else handling WMS/WFS) 
to display the map.

2. a) Use the description in this link to import the GeoJSON into 
PostGIS (I have not tried it, I normally use QGIS but if the file is 
very very large...) 
https://geekforum.wordpress.com/2014/05/30/using-postgis-the-geographical-information-system-extension-to-postgresql/
2. b) the rest is the same as above.

I hope this helps you some.

Cheers

Lars

Am 04.02.2015 um 18:34 schrieb zach cruise:
> looks like we need vectiles but i am not sure if i create them in
> postgis or geoserver/mapserver.
>
> does anyone know?
>
> we have a large static geojson file that needs to be chunked up into
> vectiles for different zooms and bounds. but before i apply regex on
> it, is there already a solution out there?
>
> http://tilestache.org/
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>




More information about the MapServer-users mailing list