<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Here you can find the php-script for generating poylgons from a
tile-list:<br>
<br>
<a class="moz-txt-link-freetext" href="http://pastebin.com/r7DWpj63">http://pastebin.com/r7DWpj63</a><br>
<br>
More information in the header. <br>
If you prefer other programming languages, also have a look at the
header.<br>
<br>
<br>
@Oliver: If you want to include it in the mapproxy trunk, you got my
permission :-)<br>
<br>
<blockquote
cite="mid:752F9BCE-F5AB-4A63-B477-8059A4620058@nutiteq.com"
type="cite">
<pre wrap="">
Can you share this load-next script part? </pre>
</blockquote>
The important part is this one:<br>
<br>
$OSM2PGSQL --append --slim --bbox "87,42,120,53" -e 0-18 -o
expire.list --cache 1024 --merc --prefix $PREFIX --style $STYLE
--host $HOST --database $DB --username $USER --hstore --verbose
"$CURRENT" 1>&2 2> "$PSQLLOG"<br>
<br>
<blockquote
cite="mid:752F9BCE-F5AB-4A63-B477-8059A4620058@nutiteq.com"
type="cite">
<pre wrap="">
You reseed only existing tiles, I guess, not generating new ones? How it is configured in seed.yaml to get this? This is something I may need for layout-driven update also.</pre>
</blockquote>
I have a complete cache. On update, i first make a MapProxy-cleanup,
then i make a seed, both with the polygons from the database. Of
course everything is scripted to do this automatically.<br>
My seed.yaml looks like this:<br>
<br>
seeds:<br>
mongolia:<br>
caches: [osm_cache]<br>
grids: [mongolia_grid]<br>
coverages: [mongolia]<br>
levels: <br>
from: 0<br>
to: 18 <br>
<br>
cleanups: <br>
clean1:<br>
caches: [osm_cache]<br>
grids: [mongolia_grid]<br>
coverages: [mongolia_cleanup]<br>
levels:<br>
from: 3<br>
to: 18 <br>
remove_before:<br>
time: 1969-01-31T12:00:00<br>
<br>
coverages:<br>
mongolia:<br>
ogr_datasource: '../world_boundaries_m.shp'<br>
ogr_where: 'CNTRY_NAME = "Mongolia"'<br>
ogr_srs: 'EPSG:3395'<br>
mongolia_cleanup:<br>
ogr_datasource: "PG: dbname='osm' host='localhost' user='user'
password='pass'"<br>
ogr_where: "select the_geom from updatepolygons"<br>
ogr_srs: 'EPSG:900913'<br>
<br>
<br>
<br>
<br>
Greetings!<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
#signature {
color: #333 !important;
font-family: monospace;
                        font-size: 12px;
padding: 10px;
line-height: 1.5em;
}
#highlight-container {
padding: 5px;
width: 450px;
margin: 30px 0;
border-width: 0px 0 0px 0;
border-right-width: 0;
border-left-width: 0;
border-style: dotted;
border-color: #333;
}
#signature a,
#signature a:link,
#signature a:visited,
#signature a:hover,
#signature a:active {
color: darkblue !important;
}
#signature address {
font-style: normal;
}
#col-container {
width: 550px;
}
#col-1 {
width: 180px; float: left;
}
#col-2 {
width: 320px; float: left;
}
#col-clear {
clear: both; padding-top: 30px;
}
#signature img {
margin-top:10px;
}
#col-container p,
#col-container address {
margin: 4px 0 0 0;
}
#signature .no-margin {
margin: 0;
}
#highlight {
font-weight: bold;
}
</style>
<div id="signature">
<div id="col-container">
<div id="col-1"> <br>
</div>
<div id="col-2">
<p class="no-margin"> Dipl.-Geogr. Johannes Weskamm<br>
— Anwendungsentwickler —<br>
</p>
<address> terrestris GmbH & Co. KG<br>
Pützchens Chaussee 56<br>
53227 Bonn </address>
<p> Tel: +49 (0)228 / 96 28 99 -555<br>
Fax: +49 (0)228 / 96 28 99 -57<br>
</p>
<p> Email: <a href="mailto:weskamm@terrestris.de">weskamm@terrestris.de</a><br>
Web: <a href="http://www.terrestris.de">http://www.terrestris.de</a>
</p>
</div>
<div id="col-clear">
<p> Amtsgericht Bonn, HRA 6835<br>
Komplementärin: terrestris Verwaltungsgesellschaft mbH<br>
vertreten durch: Hinrich Paulsen, Till Adams <br>
</p>
</div>
</div>
</div>
</div>
</body>
</html>