<div dir="ltr"><div class="gmail_quote"><div dir="ltr">note: I sent this to GDAL list, but maybe is more about PostGIS than gdal .</div><div dir="ltr">.</div><div dir="ltr"><div><br></div><div>I'm running MapServer 7 and GDAL 2.2.1, using gdal2tiles for tile generation tilesets for Leaflet applications.</div><div>XML files was defined as WMS datasource for gdal2tiles scripts which contains XML/DataWindow parameters for the whole extent for the WMS/MapServer map. A XML file is defined for each zoom level to be rendered.</div><div><br></div><div>Most of layers, do not have many frequent geometry updates - such as rivers, bridges, blocks. But street lines or bus stops, sometimes have geometry updates that could change the location of a bus stop or the length/shape of a given street line part.</div><div><br></div><div>Before the tiling process, current street line layer and the new street line layer( containing line changes or new lines or deleted ones) will be stored in PostGIS database. Then, using spatial PostGIS functions I think will be fine on finding locations wich contains changed objects.</div><div><br></div><div>But how could I update my entire tileset (from 10 to 19 zoom level) without running re-tiling process for all zoom levels? I'd like to update only the tile blocks which really contains updated objects. </div><div><br></div><div>ST_TileEnvelope could be a help for that?<br></div><div><br></div><div>thanks for any help.</div><br clear="all"><div><div dir="ltr" data-smartmail="gmail_signature">Eduardo Patto Kanegae<br><a href="http://www.webmapit.com.br" target="_blank">http://www.webmapit.com.br</a> | @webmapit</div></div><div dir="ltr" data-smartmail="gmail_signature"><br></div><div dir="ltr" data-smartmail="gmail_signature"><div>---XML </div><div><GDAL_WMS><br><Service name="WMS"><br> <Version>1.1.1</Version><br> <ServerUrl><a href="http://myserver/myservoce" target="_blank">http://myserver/myservoce</a>?</ServerUrl><br> <SRS>EPSG:3857</SRS><br> <ImageFormat>image/png</ImageFormat><br> <Transparent>TRUE</Transparent><br> <Layers>layers2render</Layers><br></Service> <br><DataWindow><br> <UpperLeftX>-5260672.7616002392023802</UpperLeftX><br> <UpperLeftY>-2598374.5154764326289296</UpperLeftY><br> <LowerRightX>-5210889.5665233032777905</LowerRightX><br> <LowerRightY>-2640567.8293181271292269</LowerRightY><br> <SizeX>716</SizeX><SizeY>602</SizeY><br></DataWindow><br> <BandsCount>4</BandsCount><br> <ZeroBlockOnServerException>true</ZeroBlockOnServerException><br></GDAL_WMS><br></div><div><br></div><div>--- script</div><div>gdal2tiles.py -s EPSG:3857 -z 10 -v -u <a href="http://myserver/tilelayers/layers2render" target="_blank">http://myserver/tilelayers/layers2render</a> -t "/var/www/html/tilelayers/newlayer/" $wms_xmlfile /var/www/html/tilelayers/$outputlayer/<br></div><div></div></div></div>
</div></div>