Revision [2450]
This is an old revision of Postgis made by MichalPalenik on 2009-12-11 11:36:13.
nastavenie postgis:
inštalácia balíčkov postgresql-8.3-postgis (postgres db a postgis) a asi aj libpostgis-java
- pacman -S postgis :D
vytvorenie postgis DB osm a usera osmuser:
su postgres createdb osm createlang plpgsql osm psql -d osm -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql psql -d osm -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql createuser osmuser; echo "GRANT ALL PRIVILEGES ON DATABASE osm to osmuser; grant all on spatial_ref_sys to osmuser; grant all on geometry_columns to osmuser; alter role osmuser password 'osm';"| psql -d osm exit
ako užívateľ potom vytvoríme schému a naimportujeme pomocou osmosis
psql -d osm -f script/pgsql_simple_schema_0.6.sql ./bin/osmosis --read-xml file="freemap/europe/slovakia.osm.bz2" --write-pgsql database="osm" user="osmuser" password="osm"
osm2pgsql
osmosis