<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 19, 2015 at 3:16 PM, zach cruise <span dir="ltr"><<a href="mailto:zachc1980@gmail.com" target="_blank">zachc1980@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 8/19/15, TC Haddad <<a href="mailto:tchaddad@gmail.com">tchaddad@gmail.com</a>> wrote:<br></span></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> Hi Zach<br>
><br>
> If you set up Mapserver to serve the original geojson layer as WFS<br>
> service[1] with geojson output [2], you can then pass in the bounding boxes<br>
> (using the WFS URL parameter BBOX=) of the tiles that you want to create.<br>
><br>
> You will get back the resulting geojson tiles as text in the browser and<br>
> can save them to wherever you want to serve them from.<br>
><br>
> [1] <a href="http://mapserver.org/ogc/wfs_server.html" rel="noreferrer" target="_blank">http://mapserver.org/ogc/wfs_server.html</a><br>
> [2]<br>
> <a href="http://mapserver.org/output/template_output.html#outputformat-declarations" rel="noreferrer" target="_blank">http://mapserver.org/output/template_output.html#outputformat-declarations</a><br>
<br>
</span>i tried but you can't set zoom levels/precision with wfs [1] and geojson [2].<br></blockquote><div><br><br></div><div>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: <a href="http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/">http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/</a><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
On 8/19/15, TC Haddad <<a href="mailto:tchaddad@gmail.com">tchaddad@gmail.com</a>> wrote:<br>
> OR, a much simpler process would be to use ogr2ogr and skip Mapserver<br>
> entirely.<br>
><br>
> see the clipping options mentioned here:<br>
><br>
> <a href="http://www.gdal.org/ogr2ogr.html" rel="noreferrer" target="_blank">http://www.gdal.org/ogr2ogr.html</a><br>
<br>
</span>interesting. i tried gdal2tiles but it creates raster not vector tiles.<br>
</blockquote></div><br></div><div class="gmail_extra"><br>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.<br></div><div class="gmail_extra"><br></div></div>