Tagged Questions
8
votes
2answers
179 views
How can I get a shapefile from a postgis query?
My data is in a PostGIS database. I would like to generate a shapefile from a query. How can I do that?
2
votes
1answer
63 views
st_clip and gdal_translate: “Error browsing database for PostGIS Raster properties” - Why?
Im using shell-script, postgis2.0 and gdal for trying to clip raster apart, using an overlapping raster and a the_geom-object. At first I create a view to clip the overlapping part of the raster. It ...
2
votes
1answer
113 views
How to import ECW into my postgis database with raster2pgsql (windows)
I'm working on windows 7 64 bits, postgis 2.01. I have to import ECW files into my postgis database. Unfortunatly, my postgis seems to has been compiled without gdal ecw support.When i do a ...
1
vote
0answers
76 views
Are there limitations with gdal virtual raster option?
I am new at Postgis and I'm groping...
I pretend to rasterize some weighty vector layers in Postgis, do some map algebra and reclassification with them and visualize intermediate as well as final ...
4
votes
1answer
69 views
How to use -lco options in gdal_contour?
I'm trying to create contours from geotiff raster with gdal_contour. My output format is Postgresql and I would like to ovewrite the existing table.
When I do:
gdal_contour -a 1 -f PostgreSQL -i 50 ...
4
votes
2answers
225 views
How to programmatically create exports from PostGIS database into different file formats (e.g. shapefile, dxf, dgn,…)?
Is there a kind of wrapper/library written in python which would enable me to programatically create exports from postgis database into different file formats (most common being, shapefile, dxf, ...
3
votes
2answers
221 views
Why does Ogr2Ogr Postgres import fail?
I have a lot of S57 files that need to be imported to PostgresDB. The process takes over 2 hours. In order to improve performance, I have tried using PG_USE_COPY to use copy instead of DB inserts. I ...
4
votes
1answer
116 views
Update PostGIS after updating GDAL?
I am using PostGIS 2.0 and I want to use the raster functionality through mapserver. It seems as if the latest official GDAL release 1.9.1 has an unstable PostGIS raster driver, as pointed out in a ...
-1
votes
1answer
128 views
PostGIS raster support
I have the following requirements to manage raster data
1) Convert raster-maps from BSB format to PNG or GeoTIFF
2) Cut the borders of the map
3) Merge individual maps to form a contiguous coverage ...
1
vote
2answers
148 views
How to specify gdal_contour output format as postgresql table?
I want to generate contours with gdal_contour command.
It generates an output as shapefile by default.
I want this utility to output a postgresql (postgis) table.
The documentation says there is a -f ...
3
votes
0answers
177 views
How to save table from PostgreSQL to MapInfo File?
I have two tables:
1 with geometry in WGS
2 with geometry in Local System
I tried this:
ogr2ogr -f "MapInfo File" output2.tab PG:"host=localhost user=postgres password=123456 dbname=postgis" -sql ...
0
votes
0answers
327 views
How to add ECW support to GDAL bundled with PostGIS Windows
I'm currently trying the new raster functionalities of PostGIS 2.0 and I successfully imported some GeoTIFF file into PostGIS (although it only find one band so it's all black and white for some ...
7
votes
2answers
261 views
How to catch PostgreSQL/PostGIS errors in GDAL/OGR Python bindings?
Is it possible to catch PostgreSQL output error messages in OGR after a query has failed?
For example
conn.ExecuteSQL('SELECT * FROM non_existing_table;')
In Postgres this returns an error ...
0
votes
3answers
206 views
raster data retrieval from postgis using c++
I have raster data in a postgis server (I am able to see it in qgis).
When I retrieve it and form gtiff image out of it using gdal, the generated image is not correct (there is a coloring problem).
I ...
3
votes
1answer
190 views
gdalinfo gives no georeferencing information for a PostGIS raster
I have a PostGIS raster dataset which I am trying to access via GDAL. I've had various problems with making this work, so thought I'd try running the gdalinfo command to check that GDAL can actually ...
12
votes
4answers
625 views
The best language to program with GDAL
I'm going to start to create programs to handle geographical data from a PostGIS server, and going to use GDAL.
According to your experience, with the best language to program with it? I can program ...
1
vote
2answers
406 views
How to create proper PostGIS points out of GRIB2 file?
I'm trying to load NCEP NOAA weather data from GRIB2 format into PostGIS and then visualize it using QGIS etc.
I'm using wgrib2 library to convert the GRIB2 data to csv first.
wgrib2 -match ...
4
votes
1answer
2k views
How to import a raster into PostGIS?
I'm trying to follow the instructions here to load a raster into a PostGIS database:
python raster2pgsql.py -s 4269 -I -r *.tif -F myschema.demelevation -o elev.sql
I understand that I replace * ...
5
votes
1answer
724 views
gdalwarp, cutline and postgis
I can not figure out how I directly can read a polygon into gdawarp's -cutline argument.
My current approach is:
ogr2ogr -f "ESRI Shapefile" mydata.shp PG:"user=myuser dbname=gisdb" -sql "select * ...
3
votes
1answer
185 views
Unexpected Result After Reprojection Attempt
I'm a member of a student team that is currently researching how to query raster information using PostGIS v2.0. Our raster's coordinate system is EPSG 2236 (NAD 83 / Florida East) and as we will be ...
5
votes
1answer
233 views
Clarification of the “25D” option in ogr2ogr
[EDIT: In my original post, I had received an error that was based on a typo, so I scrapped that part of the question, but left the questions that still apply.]
In the ogr2ogr docs it says:
-nlt ...
9
votes
3answers
928 views
getting dxf files out of PostgreSQL
I've successfully loaded a bunch of shapefiles into a PostGIS database. I would like to be able to retrieve specific geometry and layers as dxf files based on SQL queries.
I'm using PostGIS, GDAL, ...

