[mapserver-users] split one geojson into tiles
zach cruise
zachc1980 at gmail.com
Fri Aug 21 12:48:56 PDT 2015
i can use bbox with wfs in mapserver. or bbox in ogr2ogr.
but it doesn't cluster for zoom levels. eg if i have 10 points at
street level, i want it to cluster to show only 1 point at country
level.
however only bbox might work. but i don't understand how to get bbox
info for z/x/y.json. could you explain in detail?
http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
also is there a seeding operation in mapserver like in geoserver? or
should i just use gdal2tiles to create raster tiles?
On 8/19/15, TC Haddad <tchaddad at gmail.com> wrote:
> 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.
>
More information about the MapServer-users
mailing list