[mapserver-dev] [mapserver-users] split one geojson into tiles

zach cruise zachc1980 at gmail.com
Wed Aug 19 15:16:38 PDT 2015


On 8/19/15, TC Haddad <tchaddad at gmail.com> wrote:
> Hi Zach
>
> If you set up Mapserver to serve the original geojson layer as WFS
> service[1] with geojson output [2], you can then pass in the bounding boxes
> (using the WFS URL parameter BBOX=) of the tiles that you want to create.
>
> You will get back the resulting geojson tiles as text in the browser and
> can save them to wherever you want to serve them from.
>
> [1] http://mapserver.org/ogc/wfs_server.html
> [2]
> http://mapserver.org/output/template_output.html#outputformat-declarations

i tried but you can't set zoom levels/precision with wfs [1] and geojson [2].

On 8/19/15, TC Haddad <tchaddad at gmail.com> wrote:
> OR, a much simpler process would be to use ogr2ogr and skip Mapserver
> entirely.
>
> see the clipping options mentioned here:
>
> http://www.gdal.org/ogr2ogr.html

interesting. i tried gdal2tiles but it creates raster not vector tiles.

On 8/19/15, Robert Sanson <Robert.Sanson at asurequality.com> wrote:
> Maybe this is something you could do with Qgis?

interesting. i found these-
https://github.com/nextgis/QTiles (creates raster tiles)
https://github.com/minorua/TileLayerPlugin (creates raster tiles)
https://github.com/matakuka/gridsplitter (saves output in .shp that i
can convert to geojson, but it doesn't follow the standard x/y/z)


More information about the mapserver-dev mailing list