Created
September 22, 2011 22:40
-
-
Save dwins/1236250 to your computer and use it in GitHub Desktop.
MN2GT Support Scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget \ | |
http://developer.mapquest.com/content/static/geotiffs/mercator_tiffs.tar \ | |
http://tile.openstreetmap.org/world_boundaries-spherical.tgz \ | |
http://tile.openstreetmap.org/processed_p.tar.bz2 \ | |
http://tile.openstreetmap.org/shoreline_300.tar.bz2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PGUSER=postgres PGHOST=localhost | |
DB=osm | |
dropdb $DB | |
createdb $DB | |
createlang plgsql -d $DB | |
psql -d $DB -f /usr/share/pgsql/contrib/postgis-1.5/postgis.sql | |
psql -d $DB -f /usr/share/pgsql/contrib/postgis-1.5/spatial_ref_sys.sql | |
bunzip2 -c colorado.osm.bz2 | ( | |
cd ~/opt/osm2pgsql/ | |
./osm2pgsql -sc -d $DB -H localhost -U postgres -S default.style -m /dev/stdin | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf mn2gt-data/ | |
svn export https://svn.codehaus.org/geoserver/trunk/data/minimal/ mn2gt-data/ | |
# cp -R ~/Projects/geoserver/data/minimal/ mn2gt-data/ | |
mkdir mn2gt-data/data/ | |
(cd mn2gt-data/data/ && tar x) < mercator_tiffs.tar | |
(cd mn2gt-data/data/ && tar xz) < world_boundaries-spherical.tgz | |
(cd mn2gt-data/data/world_boundaries && tar xj) < processed_p.tar.bz2 | |
(cd mn2gt-data/data/world_boundaries && tar xj) < shoreline_300.tar.bz2 | |
cp -r ~/Projects/MapQuest-Mapnik-Style/mapquest_symbols/ \ | |
mn2gt-data/styles/symbols/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PGUSER=postgres | |
export PGDATABASE=osm | |
export PGHOST=127.0.0.1 | |
dropdb | |
createdb | |
createlang plgsql | |
psql -f /usr/share/pgsql/contrib/postgis-1.5/postgis.sql | |
psql -f /usr/share/pgsql/contrib/postgis-1.5/spatial_ref_sys.sql | |
gunzip -c california.sql.gz | psql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment