[gdal-dev] Re: How to create a fake GeoTIFF for GeoJP2

2012-05-12 Thread Jukka Rahkonen
Frank Warmerdam pobox.com> writes: > > > > gdal_translate -srswin 0 0 1 1 original.tif to_be_embedded.tif? > > > > This is the gdalinfo from a geotiff that I took out from the UUID box of a > > GeoJP2 image. It seems to be exactly just the topleft pixel of the image. > > Jukka, > > Yes, this s

Re: [gdal-dev] How to create a fake GeoTIFF for GeoJP2

2012-05-12 Thread Frank Warmerdam
On 12-05-12 12:25 PM, Jukka Rahkonen wrote: Hi, I have Geotiff files and a fast program for compressing images into JPEG2000. However, this program does not add GeoJP2 georeferencing into JPEG2000 files and I would like to include it. I have also a program that can add GeoTIFF as an UUID box in

[gdal-dev] How to create a fake GeoTIFF for GeoJP2

2012-05-12 Thread Jukka Rahkonen
Hi, I have Geotiff files and a fast program for compressing images into JPEG2000. However, this program does not add GeoJP2 georeferencing into JPEG2000 files and I would like to include it. I have also a program that can add GeoTIFF as an UUID box into an existing JPEG2000 file. What I miss is

Re: [gdal-dev] PostgreSQL driver for GDAL1.8.1

2012-05-12 Thread pcreso
Ensure you have appropriately modified postgreql.conf & pg_hba.conf to allow the appropriate external access to the required database, for the required user, from the client IP (CIDR) address. If this is not enabled, such external connections cannot happen. Brent Wood --- On Sat, 5/12/12, Siju

[gdal-dev] Updating a single PostgreSQL field from ogr/python

2012-05-12 Thread Martin Jensen
Hi list, I was trying to do the following with ogr python bindings 1. Create srclayer from PostGIS based on sql statement 2. Copy srclayer to dstlayer (also PostGIS) 3. Add new field to dstlayer 4. assign value to new field My code is this: ### Open Database Driver = ogr.GetDriver

[gdal-dev] Gdal_translate overwriting images

2012-05-12 Thread Jukka Rahkonen
Hi, I am playing with compression options and by accident used an existing image as a target. gdal_translate -of GTiff -co tiled=yes -co compress=jpeg q4213e.tif lzw.tif Input file size is 12000, 12000 ERROR 1: Deleting lzw.tif failed: Permission denied 0...10...20...30...40...50...60...70...80..

Re: [gdal-dev] PostgreSQL driver for GDAL1.8.1

2012-05-12 Thread Dmitry Baryshnikov
12.05.2012 12:00, Siju Wu ???: Hi, I began using the GDAL for my master projet last month. Before I used OGR to read directly the maps of shapefile. But now I need to store the data first in the database of PostgreSQL and then make access to the database by using the driver of OGR. However

[gdal-dev] PostgreSQL driver for GDAL1.8.1

2012-05-12 Thread Siju Wu
Hi, I began using the GDAL for my master projet last month. Before I used OGR to read directly the maps of shapefile. But now I need to store the data first in the database of PostgreSQL and then make access to the database by using the driver of OGR. However I found that I can't connect the databa