RE: [gdal-dev] Problem calling Python bindings' band.ReadAsArray() from ArcGIS 9.3 - SWIG issue?

2010-06-30 Thread Jason Roberts
Oops, I apologize; I mis-described the scenario slightly. I had previously thought that the failure occurs only when calling band.WriteArray. In fact, it happens during band.ReadAsArray. Sorry for the elementary mistake. Anyway, you probably want a full traceback. I changed this: data = ban

[gdal-dev] Problem calling Python bindings' band.WriteArray() from ArcGIS 9.3 - SWIG issue?

2010-06-30 Thread Jason Roberts
Greetings GDAL developers, I am encountering what I suspect is a SWIG issue with the GDAL Python bindings. I am using the bindings from Python scripts invoked by ArcGIS on Windows. Starting with version 9.3, ArcGIS instantiates the Python interpreter internally with Python's C API and executes

[gdal-dev] Development and Compilation of a custom SQLite/Spatialite Driver

2010-06-30 Thread Sharad Singh
Hi List, I am developing a custom SQLite/Spatialite driver for a GIS application. Now when I am compiling my source code I am getting a some linking errors. The source code has the following files as its header files sqlite3.h geos_c.h gaiageo.h spatialite.c wx/string.h iconv.h proj_api.h In t

[gdal-dev] Re: Error while using gdalwarp- Values become Zero

2010-06-30 Thread Hermann Peifer
Could it be that the top right corner of final.tif is simply outside the extent of translate.tif and filled with 0, during warping? Hermann On 30/06/2010 15:32, Monica Buescu wrote: Greetings I have TIF file that I produced using gdal_translate. I used the following expression: "gdal_transla

Re: [gdal-dev] ogr2ogr problem converting UK Ordnance Survey MasterMap

2010-06-30 Thread Even Rouault
Jez, the reason for the orientation field to be recognize in the CartographicSymbol layer and not in the CartographicText layer lies in the structure of the GML file and limitations of the OGR GML driver and/or OGR data model. Namely OGR only supports a "flat" organization of fields whereas GML

Re: [gdal-dev] Re: ESRI file geodatabase support

2010-06-30 Thread Matt Wilkie
For what it's worth, here is the reply I recieved from ESRI regarding the release plans. In a follow on message I also asked whether the API would require runtime licensing or similar, to which I've not received a reply; I waited a week or so. Hi Matt, To answer your question abo

Re: [gdal-dev] Re: ESRI file geodatabase support

2010-06-30 Thread Matt Wilkie
7) ??more ideas/requests?? > - Have metadata as part of the file, rather than a separate file, to > avoid getting lost when copying data YES please! matt wilkie Geomatics Analyst Information Management and Technology Yukon Department of Envir

Re: [gdal-dev] Converting a .bin image

2010-06-30 Thread Even Rouault
Pierre, you need the header file, or enough info to rebuild it by yourself. GDAL can do much, but not yet black magic. This is targetted for GDAL 2.0 ;-) Best regards, Even Le Wednesday 30 June 2010 16:21:26 Pierre Racine, vous avez écrit : > Hi, > > Someone gave me a .bin file. Apparently thi

[gdal-dev] Adding custom projections for ECW files

2010-06-30 Thread Jean-Claude REPETTO
Hello, I need to add some custom projections for ECW files. I have changed the ecw_cs.wkt to include the new definitions, and it is working. But these modifications will be lost during the next GDAL upgrade. Is there a way to prevent that problem ? Jean-Claude _

[gdal-dev] GCP/Chip Projection

2010-06-30 Thread Francois Maass
Good Day List! We are working on a project that involves cross-referencing gcp chips between two satalite images. The chip is a small image extracted in such a way that the GCP is located at the center, usually a few pixels in size. We have two images as input, a raw (unprocessed) image, and

RE: [gdal-dev] ogr2ogr problem converting UK Ordnance Survey MasterMap

2010-06-30 Thread Jez Walters
Frank, Thanks for looking in to this! I've just repeated the problem with the Ordnance Survey sample MasterMap, which is available from here: http://www.ordnancesurvey.co.uk/oswebsite/products/innovations/sampledata/OSMasterMap_Topo/58116-SX9192-2c1.gz I tried converting the above GML to ESRI

Re: [gdal-dev] ogr2ogr problem converting UK Ordnance Survey MasterMap

2010-06-30 Thread Frank Warmerdam
Jez, Can you provide a mastermap file I can test with? Best regards, On Wed, Jun 30, 2010 at 4:31 PM, Jez Walters wrote: > > Not quite sure if I've got the right forum, but I'm having trouble using the > 'ogr2ogr' utility (part of GDAL 1.7.2) to convert Ordnance Survey GML into > ESRI shapefile

[gdal-dev] ogr2ogr problem converting UK Ordnance Survey MasterMap

2010-06-30 Thread Jez Walters
Not quite sure if I've got the right forum, but I'm having trouble using the 'ogr2ogr' utility (part of GDAL 1.7.2) to convert Ordnance Survey GML into ESRI shapefiles. The 'orientation' field is being ignored when I convert the CartographicText layer, although this field gets successfully transl

Re: [gdal-dev] Raster/vector intersections in PostGIS WKT Raster

2010-06-30 Thread christian . mueller
No, I did not consider GDAL/Georaster. The reasons are 1) There is already a plugin (imagemosaic-jdbc) for fetching images from jdbc databases supporting Oracle Location Based Services, Postgis, DB2 spatial extender and jdbc databases without a spatial extension. I did not want to add a ne

[gdal-dev] Converting a .bin image

2010-06-30 Thread Pierre Racine
Hi, Someone gave me a .bin file. Apparently this is an image file that was created using ENVI. I don't have ENVI and there is no .hdr file. Anybody knows how to convert this to a more common format? gdalinfo says: ERROR 4: `gp_0.05_C5.1_2006.bin' not recognised as a supported file format. gda

RE: [gdal-dev] Raster/vector intersections in PostGIS WKT Raster

2010-06-30 Thread Pierre Racine
>Now, going back to the WKT Raster. I have loaded Raster on PostGIS before >using TerraLib and I believe >there is a very large project called TerraAmazon using that combination. In >terms of query and >functionality I know that TerraLib also does raster/vector intersection too >but I am wonderi

[gdal-dev] Error while using gdalwarp- Values become Zero

2010-06-30 Thread Monica Buescu
Greetings I have TIF file that I produced using gdal_translate. I used the following expression: "gdal_translate -of GTiff -a_ullr 350.25 42.75 354.75 36.75 GRIB_tests/pt.grib GRIB_tests/translate.tif All values are ok and it seems to be working. Then, I decided to gdalwarp it with this command:

Re: [gdal-dev] Raster/vector intersections in PostGIS WKT Raster

2010-06-30 Thread Ivan Lucena
Hi Christian, I am sorry to spoil this thread. We are suppose to be talking about WKT Raster, but as you mentioned GeoRaster on gdal-dev list I just have to ask you if you have considered or tested using GDAL/GeoRaster. Did you? There is an ease way to do that, and it works for OSSIM, QGIS, Arc

Re: [gdal-dev] Retrieving pixel corners through Python-gdal

2010-06-30 Thread Monica Buescu
Hello Tom Thanks. It also worked for me Thanks Monica On Tue, Jun 29, 2010 at 3:01 PM, Kralidis,Tom [Ontario] < tom.krali...@ec.gc.ca> wrote: > > > > -Original Message- > > From: gdal-dev-boun...@lists.osgeo.org > > [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Monica Buescu > >

Re: [gdal-dev] Raster/vector intersections in PostGIS WKT Raster

2010-06-30 Thread christian . mueller
Hi, the documentation for the GeoRaster geotools plugin is here http://docs.codehaus.org/display/GEOTDOC/Oracle+GeoRaster+Plugin For geoserver look here http://docs.geoserver.org/stable/en/user/data/oraclegeoraster.html Technically , I investigated int the Oralce Java API. 2 problems occurre

Re: [gdal-dev] gdal_merge.py alpha mask

2010-06-30 Thread Stefan Klug
Am 29.06.2010 18:23, schrieb Chaitanya kumar CH: Stefan, I haven't tested the script but doesn't the current code copy the alpha band? If it does, it might be more preferable to copy all the pixels and the alpha band. Yes the current code copies the alpha band, but it uses the same nodata set

Re: [gdal-dev] GDAL with OGDI

2010-06-30 Thread Chaitanya kumar CH
I created a ticket for the pg driver at http://trac.osgeo.org/gdal/ticket/3667 On Wed, Jun 30, 2010 at 12:32 PM, Frank Warmerdam wrote: > On Wed, Jun 30, 2010 at 8:45 AM, Malm Paul > wrote: > > I looked at table soundp in postgres, created with FWTOOLS which works, > and all hdh, numeric(15,6),

Re: [gdal-dev] GDAL with OGDI

2010-06-30 Thread Frank Warmerdam
On Wed, Jun 30, 2010 at 8:45 AM, Malm Paul wrote: > I looked at table soundp in postgres, created with FWTOOLS which works, and > all hdh, numeric(15,6), values are 1.00. > Could it be that the all values are nan in the original data, and were > previously changed in OGDI to 1.? Paul,