Re: [gdal-dev] JP2k, ReadError, Python

2011-07-30 Thread Jay L.
Even, I feel quite foolish. I had not properly registered the plugin PATH. The jp2 are processing without a problem as I type. I will be sure to create a blog post documenting ALL of the steps that are required to get GDAL up on running on a windows machine. Many thanks for your assistance! Ja

Re: [gdal-dev] ogr2ogr projecting from postgis to postgis

2011-07-30 Thread Chaitanya kumar CH
Bryan, OGR is reading the layer definition of the source. The problem must be when reading the features. Run your commands after setting the environment variable CPL_DEBUG to ON. Report any new messages. What is the output of ogrinfo with the options -al and -so on the database? On Sun, Jul 31,

[gdal-dev] ogr2ogr projecting from postgis to postgis

2011-07-30 Thread Bryan Hempen
Hi! I have a little trouble figuring out how to use ogr2ogr to read spatial data from a postgis table, project it and store it back in the database. I do not want to create a shapefile or something like that and load the data back into the database again. Using ogr2ogr for data other than stor

Re: [gdal-dev] FileGDB OGR driver test

2011-07-30 Thread Ragi Burhum
Do any of the APIs that return error messages say anything? http://www.gdal.org/ogr/cpl__error_8h.html Also, if multiple processes try to open the same file and stay resident, I am not sure how the FileGDB API will behave. Can you set the worker mpm settings to always have at most 1 process just t

RE: [gdal-dev] FileGDB OGR driver test

2011-07-30 Thread Smith, Michael ERDC-CRREL-NH
It is prefork [msmith@linux_wms_bm ~]$ httpd -V Server version: Apache/2.2.15 (Unix) Server built: Jul 23 2010 05:08:08 Server's Module Magic Number: 20051115:24 Server loaded: APR 1.4.2, APR-Util 1.3.9 Compiled using: APR 1.4.2, APR-Util 1.3.9 Architecture: 64-bit Server MPM: Prefork t

Re: [gdal-dev] JP2k, ReadError, Python

2011-07-30 Thread Even Rouault
Le samedi 30 juillet 2011 19:14:17, Jay L. a écrit : > Here is the link. As I said, it is 28MB, including the .jp2, .aux.xml, and > .prj file. > > http://www.personal.psu.edu/jzl5325/CTX.zip > > I would have thought that unloading the JPEG2000 driver would have forced > the ECW driver to be used

Re: [gdal-dev] NGA High Resolution Elevation (HRE) data problem?

2011-07-30 Thread Even Rouault
Just a small follow-up on this (non-GDAL) issue. http://www.gwg.nga.mil/ntb/baseline/docs/HRE_spec/index.html has now an addendum : """ The concept sample files downloaded before 10 Feb 2011 included an anomaly. Although marked as no display; when displayed, the display indicated a vertica

Re: [gdal-dev] JP2k, ReadError, Python

2011-07-30 Thread Jay L.
Here is the link. As I said, it is 28MB, including the .jp2, .aux.xml, and .prj file. http://www.personal.psu.edu/jzl5325/CTX.zip I would have thought that unloading the JPEG2000 driver would have forced the ECW driver to be used. It looks to me as if that driver is not being used although it i

Re: [gdal-dev] JP2k, ReadError, Python

2011-07-30 Thread Even Rouault
Le samedi 30 juillet 2011 18:46:42, Jay L. a écrit : > Evan, > > Thanks for the info. Setting debug to on has allowed me to trace the > problem to this line: > > scanBlock = band.ReadAsArray(h,i,numberColumns, > numberRows).astype(numpy.float) > > showing this error / information: > > C:\Py_Sc

Re: [gdal-dev] JP2k, ReadError, Python

2011-07-30 Thread Jay L.
Evan, Thanks for the info. Setting debug to on has allowed me to trace the problem to this line: scanBlock = band.ReadAsArray(h,i,numberColumns, numberRows).astype(numpy.float) showing this error / information: C:\Py_Scripts\RunningSD>python ISCopy.py P01_001468_1534_XI_26S034W.jp2 -vus 5 JPEG

Re: [gdal-dev] JP2k, ReadError, Python

2011-07-30 Thread Even Rouault
Le samedi 30 juillet 2011 17:37:48, Jay L. a écrit : > Morning all, > > I have a rather large JP2 file (created using the Kakadu driver I believe) > that I am trying to process with a python script. I am able to open the > dataset and grab the first band. > > To calculate band statistics I use t

Re: [gdal-dev] Build on Redhat 7.x

2011-07-30 Thread Even Rouault
Le samedi 30 juillet 2011 00:48:37, Ian Walberg a écrit : > Folks, > > We need to be able to guild GDAL on Redhat 7.x as some of the systems we > deploy to still use it (don't ask) > > Currently we are using 1.4.1 which was the newest version that we could > get to build some time ago. > > Howev

Re: [gdal-dev] FileGDB OGR driver test

2011-07-30 Thread Ragi Burhum
Wild guess, you are using Apache Multithreaded. If you try on Apache prefork, and it works, it is a threading issue with the FileGDB API. The script version of your test would work because it spawns a brand new process. Just guessing... > Date: Fri, 29 Jul 2011 23:59:00 +0200 > From: Even Rouau

[gdal-dev] JP2k, ReadError, Python

2011-07-30 Thread Jay L.
Morning all, I have a rather large JP2 file (created using the Kakadu driver I believe) that I am trying to process with a python script. I am able to open the dataset and grab the first band. To calculate band statistics I use the following code which returns 1000 lines of error before exiting

Re: [gdal-dev] FileGDB OGR driver test

2011-07-30 Thread Daniel Morissette
On 11-07-29 05:59 PM, Even Rouault wrote: Le vendredi 29 juillet 2011 23:20:48, Daniel Morissette a écrit : For the record, I've tested your little testfgdb and run it under my favorite http server : mongoose. And... it works well... Actually, I've been told by Mike/Jeff that it worked under