Skip to content

Commit

Permalink
0.8.0 release
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ABOUT
@@ -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
-------
27 changes: 27 additions & 0 deletions config.xml.in
@@ -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 added france.dbf
Binary file not shown.
Binary file added france.shp
Binary file not shown.
Binary file added france.shx
Binary file not shown.
26 changes: 26 additions & 0 deletions install.sh.in
@@ -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 added world.dbf
Binary file not shown.
Binary file added world.shp
Binary file not shown.
Binary file added world.shx
Binary file not shown.

0 comments on commit 823d7a0

Please sign in to comment.