MapServer / basemaps

Scripts to generate MapServer mapfiles based on OpenStreetMap data. Please submit pull requests to the 'main' branch.
61 stars 46 forks source link

Add automatically OSM_EXTENT #21

Closed maraev closed 11 years ago

maraev commented 11 years ago

Hi! is it possible add a option of automatic generate EXTENT to final- mapfile via basemaps script? I mean now we manually add OSM_EXTENT var to MakeFile. Usually I get the value as SELECT ST_Extent(way) from osm_line request. May we add maybe in generate_style.py ?

tbonfort commented 11 years ago

wontfix. the complexity of adding a database call to the scripts isn't worth the hassle imho. you can always add that as a preprocessing step to your "make" invocation, e.g.

export EXTENT=`my-extent-script.sh`
make STYLE=foo OSM_EXTENT=$EXTENT