PostGIS Raster: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
K
K (Rasterdaten laden)
 
Zeile 16: Zeile 16:
 
* mit lokalen Kommandozeilenprogramm [http://postgis.net/docs/using_raster_dataman.html raster2pgsql].
 
* mit lokalen Kommandozeilenprogramm [http://postgis.net/docs/using_raster_dataman.html raster2pgsql].
 
* Tipp: die empfohlene Standardgrösse für den Kachel-Parameter ist 128 Pixel.
 
* Tipp: die empfohlene Standardgrösse für den Kachel-Parameter ist 128 Pixel.
 +
 +
Beispiel (aus [http://gis.stackexchange.com/questions/18254/loading-a-raster-into-a-postgis-2-0-database-on-windows]):
 +
  $ raster2pgsql -s 102003  -t 128x128 ras_test.tif ras_test > elev.sql
 +
  $ raster2pgsql -I -C -e -Y -F -s 26986 -t 128x128  -l 2,4 bostonaerials2008/*.jpg aerials.boston | psql -U postgres -d gisdb -h localhost -p 5432
 +
 +
Anderes Beispiel:
 +
  $ raster2pgsql -s 27700 -t 128x128 -I -C -M  *.tif  > os_strview.sql
 +
  $ psql -h localhost -U postgres -d raster_test -f os_strview.sql
 +
 +
Quellen:
 +
* [http://suite.opengeo.org/opengeo-docs/dataadmin/pgGettingStarted/raster2pgsql.html Howto by OsGeo].
 +
* http://www.postgis.org/documentation/manual-svn/using_raster.xml.html#RT_Raster_Loader
  
 
== Lektion zu PostGIS Raster (Entwurf) ==  
 
== Lektion zu PostGIS Raster (Entwurf) ==  

Aktuelle Version vom 12. Juni 2015, 16:05 Uhr

Ab PostGIS Version 2.0 gibt es neu einen Raster-Datentyp.

Siehe auch PostGIS - Tipps und Tricks, WMS.

Weblinks:

Rasterdaten laden

Laden von GeoTIFF in PostGIS:

  • mit lokalen Kommandozeilenprogramm raster2pgsql.
  • Tipp: die empfohlene Standardgrösse für den Kachel-Parameter ist 128 Pixel.

Beispiel (aus [2]):

 $ raster2pgsql -s 102003  -t 128x128 ras_test.tif ras_test > elev.sql
 $ raster2pgsql -I -C -e -Y -F -s 26986 -t 128x128  -l 2,4 bostonaerials2008/*.jpg aerials.boston | psql -U postgres -d gisdb -h localhost -p 5432

Anderes Beispiel:

 $ raster2pgsql -s 27700 -t 128x128 -I -C -M  *.tif  > os_strview.sql
 $ psql -h localhost -U postgres -d raster_test -f os_strview.sql

Quellen:

Lektion zu PostGIS Raster (Entwurf)

"Raster neu erfunden? - Neue Vektor-Raster-Analyse-Möglichkeiten mit PostGIS 2.0"

Stichworte zum Inhalt und Aufbau:

  1. Einleitung: Historie, Ziele
  2. Anwendungen
  3. Beispiele:
    1. Verschnitt mit Höhenmodell
    2. Wo die Gämsen wohnen
    3. Aus WKTRaster-Tutorial
  4. Ausblick, was ist geplant?