Re: [gdal-dev] adding georeferencing information

2011-09-22 Thread Andrew Brooks
On 22 September 2011 16:06, Jan Hartmann wrote: > Hi Andrew, I must have overlooked your mail. Applygeo is not mentioned on > the libgeotiff page, but I found the following posting: > > > http://osgeo-org.1803224.n2.nabble.com/Copy-projection-between-GeoTIFFs-td2065142.html > It is in the bin d

Re: [gdal-dev] ECW writing (was GTiff optimisation)

2011-09-22 Thread Even Rouault
Le jeudi 22 septembre 2011 22:14:40, Jean-Claude Repetto a écrit : > On 09/22/11 19:03, Even Rouault wrote: > >> - gdal_edit reports no error when the parameters are wrong : > >> $ gdal_edit.py -mo KJHJKHJKHJ=GKFLLLMM France.ecw > > > > I see nothing wrong here. It is perfectly valid to assign GKF

Re: [gdal-dev] ECW writing (was GTiff optimisation)

2011-09-22 Thread Jean-Claude Repetto
On 09/22/11 19:03, Even Rouault wrote: - gdal_edit reports no error when the parameters are wrong : $ gdal_edit.py -mo KJHJKHJKHJ=GKFLLLMM France.ecw I see nothing wrong here. It is perfectly valid to assign GKFLLLMM to KJHJKHJKHJ metadata item. gdal_edit.py is meant as being generic, so if th

Re: [gdal-dev] OGR SQL implicit conversions

2011-09-22 Thread Daniel Morissette
No strong opinion/preference for me... On 11-09-21 01:20 PM, Tamas Szekeres wrote: Hi Devs, We have some problems due to the recent changes in the SQL expression parser which is related to the change in the implicit type conversion behaviour. Formerly we could safely use the following stateme

Re: [gdal-dev] Affine Transforming an OGR Shape

2011-09-22 Thread Frank Warmerdam
James, On clumsy alternative is to modify and use the "spatial transformer" script which allows you to apply an arbitrary spatial transformation expressed in Python: http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/vec_tr.py There is no trivial mechanism for this in GDAL/OGR that I am

[gdal-dev] Affine Transforming an OGR Shape

2011-09-22 Thread JamesFinkle
Hello, Hopefully someone can help me with the issue I'm trying to solve here. I was given a non-georeferenced scanned map as a raster and told to make shapefiles for certain features of the map. It was not until I had finished doing so that I realized that it was not georeferenced. I was able to g

Re: [gdal-dev] PostgreSQL

2011-09-22 Thread Chaitanya kumar CH
Andy, Send me the problematic shapefiles and explain what conversions you are trying to perform. On Thu, Sep 22, 2011 at 9:18 PM, Andy Colson wrote: > Hi List, > > I'm using ogr2ogr to convert (and reproject) data from shapefile to PG, if > I use insert statements the null dates are not a probl

Re: [gdal-dev] ECW writing (was GTiff optimisation)

2011-09-22 Thread Even Rouault
> - The -tr option doesn't work, or I don't understand how to use it : > $ gdal_edit.py -tr 10 10 France.ecw > Traceback (most recent call last): >File "/usr/share/gdal/samples/gdal_edit.py", line 152, in > sys.exit(gdal_edit(sys.argv)) >File "/usr/share/gdal/samples/gdal_edit.py", li

[gdal-dev] PostgreSQL

2011-09-22 Thread Andy Colson
Hi List, I'm using ogr2ogr to convert (and reproject) data from shapefile to PG, if I use insert statements the null dates are not a problem, but if I set PG_USE_COPY=YES, then I get errors: ERROR 1: COPY statement failed. ERROR: date/time field value out of range: "/00/00" CONTEXT: COP

Re: [gdal-dev] ECW writing (was GTiff optimisation)

2011-09-22 Thread Jean-Claude Repetto
Le 01/09/2011 14:12, Even Rouault a écrit : I've just commited a new changeset. Now the support for updating the header info has been successfully tested on Linux 64bit with 3.3 SDK, Windows 32bit with 3.3 SDK and Windows 32bit with 4.2 Read-Only SDK. At first, I had an issue with 4.2 Read-only

Re: [gdal-dev] Using the alpha channel to mask parts of an image

2011-09-22 Thread Frank Warmerdam
On 11-09-22 05:00 AM, Jan Hartmann wrote: Hi, I have a set of unreferenced RGB images with black borders I want to cut off. I do this by adding a fourth alpha band to the image when warping it, and filling this with 255 within the data rectangle, and 0 outside, using gdal_rasterize ( I have the

Re: [gdal-dev] adding georeferencing information

2011-09-22 Thread Jan Hartmann
Hi Andrew, I must have overlooked your mail. Applygeo is not mentioned on the libgeotiff page, but I found the following posting: http://osgeo-org.1803224.n2.nabble.com/Copy-projection-between-GeoTIFFs-td2065142.html Thanks, Jan On 09/22/2011 04:24 PM, Andrew Brooks wrote: On 22 September 201

[gdal-dev] Re: Compiling GDAL with Python bindings - some help required

2011-09-22 Thread Howard Butler
On Sep 21, 2011, at 4:17 PM, NJ Duncan wrote: > Dear Howard, > > I'm trying to install GDAL with Python bindings on a university machine - no > root access. I can specify an installation directory using ./configure > --prefix=/home/gdal and I assume one for python using > --with-pymoddir=/ho

Re: [gdal-dev] adding georeferencing information

2011-09-22 Thread Jan Hartmann
Thanks Jean-Claude, I'll try it out as soon as I manage to compile GDAL trunk. It's still broken at the moment ... Jan On 09/22/2011 02:26 PM, Jean-Claude Repetto wrote: Le 22/09/2011 13:37, Jan Hartmann a écrit : Found the answer to this one: use the "listgeo" and "geotifcp" utilities from t

Re: [gdal-dev] adding georeferencing information

2011-09-22 Thread Jean-Claude Repetto
Le 22/09/2011 13:37, Jan Hartmann a écrit : Found the answer to this one: use the "listgeo" and "geotifcp" utilities from the Geotiff library (http://trac.osgeo.org/geotiff/). They are not included in the gdal utilities, so you need them install them yourself. Jan There is a new GDAL utility p

[gdal-dev] Using the alpha channel to mask parts of an image

2011-09-22 Thread Jan Hartmann
Hi, I have a set of unreferenced RGB images with black borders I want to cut off. I do this by adding a fourth alpha band to the image when warping it, and filling this with 255 within the data rectangle, and 0 outside, using gdal_rasterize ( I have the exact georeferenced boundaries of the

Re: [gdal-dev] adding georeferencing information

2011-09-22 Thread Jan Hartmann
Found the answer to this one: use the "listgeo" and "geotifcp" utilities from the Geotiff library (http://trac.osgeo.org/geotiff/). They are not included in the gdal utilities, so you need them install them yourself. There is a debian package for it (geotiff-bin), and I guess there are binary v

[gdal-dev] Re: Export multiples postgres-tables with an order of fields

2011-09-22 Thread Jukka Rahkonen
BSAP ( Andres Thomas bsap.ch> writes: > … then I append them to one itf manually… because the –append option > seems not to work with the interlis-driver I have a feeling that at least with some drivers both -update and -append are needed. > Is there a better way to do? Couldn’t I use multi

Re: [gdal-dev] Re: error compiling gdal with ArcSDE support

2011-09-22 Thread Wouter Schaubroeck
Hi Howard, This did the trick! Thanks, you made my day... grtz, w -- Wouter http://blog.giswhat.be On 21 September 2011 15:50, Howard Butler wrote: > > On Sep 21, 2011, at 7:30 AM, Wouter Schaubroeck wrote: > > > Hi list, > > > > Good news, I've fixed this issue by removing the libsde.so file