Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: file:///tmp/tinyows-svn-mirror/tags/demo@227 5b3c568a-86f9-4a59-a47a-7be284f604b4
- Loading branch information
Olivier Courtin
committed
May 1, 2010
0 parents
commit 823d7a0
Showing
9 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
======= | ||
1) Documentation HowTo Launch Demonstration | ||
======= | ||
Cf <http://tinyows.org/trac/tinyows/wiki/LaunchDemo> | ||
|
||
======= | ||
2) Datas | ||
======= | ||
World Administrative Boundaries | ||
http://www.cipotato.org/diva/data/misc/world_adm0.zip | ||
EPSG:4326 | ||
------- | ||
France Sub Administrative boundaries | ||
http://professionnels.ign.fr/DISPLAY/000/526/741/5267418/GEOFLA-dep-L2-SF.ZIP | ||
EPSG:27582 | ||
------- |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<tinyows online_resource="http://127.0.0.1/cgi-bin/tinyows" | ||
schema_dir="@prefix@/tinyows/schema/"> | ||
|
||
<pg host="127.0.0.1" user="postgres" password="postgres" dbname="tinyows_demo" port="5432"/> | ||
|
||
<metadata name="TinyOWS Server" | ||
title="TinyOWS Server - Demo Service" /> | ||
|
||
<contact name="TinyOWS Server" | ||
site="http://www.tinyows.org/" | ||
email="tinyows-users@lists.maptools.org" /> | ||
|
||
<layer retrievable="1" | ||
writable="1" | ||
prefix="tows" | ||
server="http://www.tinyows.org/" | ||
name="world" | ||
title="World Administrative Boundaries" /> | ||
|
||
<layer retrievable="1" | ||
writable="1" | ||
prefix="tows" | ||
server="http://www.tinyows.org/" | ||
name="france" | ||
title="French Administrative Sub Boundaries (IGN - GeoFLA Departements)" /> | ||
|
||
</tinyows> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#/bin/sh | ||
|
||
# don't launch directly this script | ||
# use 'make install-demo' to do so | ||
|
||
PGBIN=@POSTGIS_BIN@ | ||
PGSHARE=@POSTGIS_SHARE@/contrib/postgis-1.5 | ||
PGUSER=postgres | ||
DB=tinyows_demo | ||
|
||
echo "Create Spatial Database: $DB" | ||
su $PGUSER -c "$PGBIN/dropdb $DB > /dev/null 2> /dev/null" | ||
su $PGUSER -c "$PGBIN/createdb $DB" | ||
su $PGUSER -c "$PGBIN/createlang plpgsql $DB" | ||
su $PGUSER -c "$PGBIN/psql $DB < $PGSHARE/postgis.sql" | ||
su $PGUSER -c "$PGBIN/psql $DB < $PGSHARE/spatial_ref_sys.sql" | ||
|
||
echo "Import layer data: world" | ||
$PGBIN/shp2pgsql -s 4326 -I demo/world.shp world > _world.sql | ||
su $PGUSER -c "$PGBIN/psql $DB < _world.sql" | ||
|
||
echo "Import layer data: france_dept" | ||
$PGBIN/shp2pgsql -s 27582 -I -W latin1 demo/france.shp france > _france.sql | ||
su $PGUSER -c "$PGBIN/psql $DB < _france.sql" | ||
|
||
rm _world.sql _france.sql |
Binary file not shown.
Binary file not shown.
Binary file not shown.