[gdal-dev] How would I build a custom pyramid ?

2011-08-22 Thread Alain Camus
Hello list, I have a set of tiles at resolution 0.5 m/pxl. Based on this data, I'd like to create a pyramid that has zoom levels 0.17, 0.33, 0.67 and 1.7 (the data will only be viewed in geoserver at these levels, so I guess it will be faster if I prepare the data at these

Re: [gdal-dev] Re: Dump Shapefile into DB using ogr2ogr

2011-08-22 Thread Ingo Weinzierl
Hi *, I already tried the approach below - without success. The result of my operation is: The command: ogr2ogr -f ESRI Shapefile -sql SELECT cast(999 as integer(3)) as river_id from SRCShape DESTShape.shp SRCShape.shp The command's result: - ERROR

[gdal-dev] Re: Dump Shapefile into DB using ogr2ogr

2011-08-22 Thread Hermann Peifer
On 22/08/2011 13:13, Ingo Weinzierl wrote: Hi *, I already tried the approach below - without success. The result of my operation is: The command: ogr2ogr -f ESRI Shapefile -sql SELECT cast(999 as integer(3)) as river_id from SRCShape DESTShape.shp SRCShape.shp The

Re: [gdal-dev] Re: Dump Shapefile into DB using ogr2ogr

2011-08-22 Thread Ingo Weinzierl
Hi Hermann, On Mon, Aug 22, 2011 at 01:30:00PM +0200, Hermann Peifer wrote: On 22/08/2011 13:13, Ingo Weinzierl wrote: Hi *, I already tried the approach below - without success. The result of my operation is: The command: ogr2ogr -f ESRI Shapefile -sql SELECT

Re: [gdal-dev] How would I build a custom pyramid ?

2011-08-22 Thread Alain Camus
Hi Christian, Thanks for your reply. OK, so I don't need my custom zoom levels. But I have one question remaining : two of the zoom levels that will be requested are smaller than the resolution of the original data (0.17 and 0.33 are smaller than the original 0.5). So I would need to

Re: [gdal-dev] How would I build a custom pyramid ?

2011-08-22 Thread christian . mueller
Zitat von Alain Camus a...@ngi.be: Hello list, I have a set of tiles at resolution 0.5 m/pxl. Based on this data, I'd like to create a pyramid that has zoom levels 0.17, 0.33, 0.67 and 1.7 (the data will only be viewed in geoserver at these levels, so I guess it will

Re: [gdal-dev] How would I build a custom pyramid ?

2011-08-22 Thread christian . mueller
Again, geoserver will rescale to your zoom levels 0.5 m/pxl. I would take a small subset of your tiles (neighbors, of course) and make a test Another important hint. What is your target platform ?. If your platform supports native JAI as described here

[gdal-dev] Re: Dump Shapefile into DB using ogr2ogr

2011-08-22 Thread Hermann Peifer
On 22/08/2011 14:08, Ingo Weinzierl wrote: It says GDAL 1.6.3, released 2009/11/19. This version comes along with Debian Squeeze. You have to upgrade to GDAL/OGR = 1.8.0 in order to make use of the new OGR SQL functionality, http://www.gdal.org/ogr/ogr_sql.html Hermann

Re: [gdal-dev] gdal_rasterize output off by one pixel/cell

2011-08-22 Thread Eli Adam
Matt, You may want to look at this ticket and see if it is the same thing. If so, you can add yourself to the cc list and you will get emails when there are updates to the ticket. You can also add any additional relevant information to the ticket. http://trac.osgeo.org/gdal/ticket/3774

[gdal-dev] gdal_translate gif-gtiff conversion

2011-08-22 Thread Dori
Hi, I am trying to convert a GIF image into a GeoTiff image. Input GIF image information: Projection: Polar Stereographic from North Pole, Cente meridian=97W, Height=0 Corners' Lower Left 19.9N 119.6W, Upper Right: 44.5N 59.5W FWTools_2.0.6 commands used. I used these commands to convert the map

[gdal-dev] gdalwarp: max, min, avg of the overlapping image area

2011-08-22 Thread Daniela Czibener
I'm using gdalwarp with two images that are not in the same location, but have a common area. In the common area, I'd like the resulting pixels values will be the maximum or average value, not the value of the last image in the source image list. Is there any option within the gdalwarp or I should

Re: [gdal-dev] gdalwarp: max, min, avg of the overlapping image area

2011-08-22 Thread Frank Warmerdam
On 11-08-22 04:57 PM, Daniela Czibener wrote: I'm using gdalwarp with two images that are not in the same location, but have a common area. In the common area, I'd like the resulting pixels values will be the maximum or average value, not the value of the last image in the source image list. Is