Changes between Version 164 and Version 165 of UserGuidelines/GIS/Data
- Timestamp:
- 06/18/11 21:57:26 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UserGuidelines/GIS/Data
v164 v165 251 251 unzip gadm_v1_lev1_shp.zip 252 252 unzip gadm_v1_lev2_shp.zip 253 ogr2ogr -f CSV CSV gadm1_lev0.shp -lco GEOMETRY=AS_WKT 254 ogr2ogr -f CSV CSV2 gadm1_lev1.shp -lco GEOMETRY=AS_WKT 255 ogr2ogr -f CSV CSV3 gadm_v1_lev2.shp -lco GEOMETRY=AS_WKT 256 mv CSV2/gadm1_lev1.csv CSV 257 mv CSV3/gadm_v1_lev2.csv CSV 258 rm -rf CSV2 259 rm -rf CSV3 260 # Fix encodings! http://ww.gadm.org/node/287 261 python utf8.py 253 262 su postgres 254 createuser -s -P gadm 255 # Mixed encodings! http://ww.gadm.org/node/287 256 createdb -O gadm -E SQL_ASCII gadm -T template0 257 createlang plpgsql -d gadm 258 psql -d gadm -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql 259 psql -d gadm -f /usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql 260 shp2pgsql -s 4326 -I gadm1_lev0.shp public.gadm1_lev0 | psql -d gadm 261 shp2pgsql -s 4326 -I gadm1_lev1.shp public.gadm1_lev1 | psql -d gadm 262 shp2pgsql -s 4326 -I gadm_v1_lev2.shp public.gadm1_lev2 | psql -d gadm 263 pgloader 263 264 }}} 264 265 ==== Configure !GeoServer ====