]> granicus.if.org Git - postgis/commitdiff
Best guess at what the Linux equivalent should look like will have to test later...
authorRegina Obe <lr@pcorp.us>
Tue, 1 Feb 2011 13:55:02 +0000 (13:55 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 1 Feb 2011 13:55:02 +0000 (13:55 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6774 b70326c6-7e19-0410-871a-916f4a2858ee

extras/tiger_geocoder/tiger_2010/create_geocode.bat
extras/tiger_geocoder/tiger_2010/create_geocode.sh [new file with mode: 0644]

index 53fb729ce96a9153feaeeab0593cfc1fc8f0950f..c9bc8aa1ffc6c734d34baf64a500dfd8f0af37ab 100644 (file)
@@ -1,3 +1,4 @@
+REM $Id$\r
 set PGPORT=5432\r
 set PGHOST=localhost\r
 set PGUSER=postgres\r
diff --git a/extras/tiger_geocoder/tiger_2010/create_geocode.sh b/extras/tiger_geocoder/tiger_2010/create_geocode.sh
new file mode 100644 (file)
index 0000000..bf628c8
--- /dev/null
@@ -0,0 +1,14 @@
+# $Id$\r
+export PGPORT=5432\r
+export PGHOST=localhost\r
+export PGUSER=postgres\r
+export PGPASSWORD=yourpasswordhere\r
+export THEDB=geocoder\r
+PSQL_CMD="psql"\r
+PGCONTRIB=/usr/share/contrib\r
+${PSQL_CMD} -d "%THEDB%" -f "${PGCONTRIB}/fuzzystrmatch.sql"\r
+${PSQL_CMD} -d "%THEDB%" -c "CREATE SCHEMA tiger"\r
+${PSQL_CMD} -d "%THEDB%" -f "tables/lookup_tables_2010.sql"\r
+${PSQL_CMD} -d "%THEDB%" -c "CREATE SCHEMA tiger_data"\r
+${PSQL_CMD} -d "%THEDB%" -f "tiger_loader.sql"\r
+${PSQL_CMD} -d "%THEDB%" -f "create_geocode.sql"\r