[mapserver-users] split one geojson into tiles

TC Haddad tchaddad at gmail.com
Wed Aug 19 15:31:47 PDT 2015


On Wed, Aug 19, 2015 at 3:16 PM, zach cruise <zachc1980 at gmail.com> wrote:

> 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].
>


Yes - you must use BBOX= with WFS. You can get all the BBOX info you need
by using globalmaptiles.py for your area of interest. You can get that
script here:
http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/


>
> 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.
>


Yes OGR2OGR is for vector to vector conversions. Spatial extent options can
be passed in using the BBOXes obtained from the same script mentioned above.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150819/978475d3/attachment.htm>


More information about the MapServer-users mailing list