Re: [gdal-dev] Python bindings on RedHat cluster (was: AttributeError: 'MaskedArray' object has no attribute 'typecode' -- when writing GeoTiff)

2009-07-20 Thread Scott Sinclair
Hi Greg, It's always a good idea to communicate via the list, there are more eyes and skills there. The conversations are also publicly archived, making it easier for others having similar problems to search for help. In this case, the mistake is mine, I see that this list behaves differently to

[gdal-dev] /vsigzip/ write support in trunk

2009-07-20 Thread Frank Warmerdam
Folks, I have extended Even's /vsigzip/ driver in trunk to support writing as well as reading. This means it is possible to write a file in compressed format by using a filename like /vsigzip/out.asc.gz. Note that the /vsigzip/ write driver does not support seeking around in the output stream s

RE: [gdal-dev] How do I open vector files (e.g. shp) using GDAL

2009-07-20 Thread Martin Chapman
Sorry, the call GDALOpen will not work for shape files: Use OGRRegisterAll(); dataSource = OGRSFDriverRegistrar::Open((const char*) filePath.c_str()); for c++; and hDS = OGROpen ( "point.shp", FALSE, NULL )

RE: [gdal-dev] How do I open vector files (e.g. shp) using GDAL

2009-07-20 Thread Martin Chapman
Call OGRRegisterAll(); on the line right before GDALOpen(); Martin From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Smart, Gary Sent: Monday, July 20, 2009 2:51 PM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] How do I open vector files (e.g.

Re: [gdal-dev] General Questions about gdal usage with Grib1 Data Set

2009-07-20 Thread Frank Warmerdam
Cassanova, Bill wrote: Thank you for your help. Couple more questions: (1) After the call to GDALGenImgProjTransform( ..., ..., ..., double *x, double *y, ..., ... ); I am assuming that the x and y arguments contain the new lat-lon values from the new projection and does not contain the dat

Re: [gdal-dev] How do I open vector files (e.g. shp) using GDAL

2009-07-20 Thread Frank Warmerdam
Smart, Gary wrote: I understand that GDAL can open vector formats as if they were a dataset? E.g. I read that it is possible to pass the GDALOpen either a single .shp file (in which case it treats it as if it only had one layer) or a directory containing multiple .shp files – which presumab

Re: [gdal-dev] How do I open vector files (e.g. shp) using GDAL

2009-07-20 Thread Even Rouault
Le Monday 20 July 2009 22:51:13 Smart, Gary, vous avez écrit : > I understand that GDAL can open vector formats as if they were a > dataset? > No, not exactly. GDAL is for the raster formats. OGR is for the vector formats. They have each their concepts, API and notions. See the OGR documentation

RE: [gdal-dev] General Questions about gdal usage with Grib1 Data Set

2009-07-20 Thread Cassanova, Bill
Thank you for your help. Couple more questions: (1) After the call to GDALGenImgProjTransform( ..., ..., ..., double *x, double *y, ..., ... ); I am assuming that the x and y arguments contain the new lat-lon values from the new projection and does not contain the data from the grid. In othe

[gdal-dev] How do I open vector files (e.g. shp) using GDAL

2009-07-20 Thread Smart, Gary
I understand that GDAL can open vector formats as if they were a dataset? E.g. I read that it is possible to pass the GDALOpen either a single .shp file (in which case it treats it as if it only had one layer) or a directory containing multiple .shp files - which presumably it opens as multi la

RE: [gdal-dev] Creating a new raster and adding data

2009-07-20 Thread Henneke, Amanda M
Thanks Even! Your suggestion worked, adding each band individually!! Also, thanks for writing up that ticket, I'm glad to know I wasn't going crazy!! Amanda M. Henneke When One tugs at a single thing in Nature, he finds it attached to the rest of the world. -John Muir Please consider the

Re: [gdal-dev] General Questions about gdal usage with Grib1 Data Set

2009-07-20 Thread Frank Warmerdam
Cassanova, Bill wrote: Hi, I am new to GDal and just beginning to dig into the intricacies of the library and would like some guidance on the best way to proceed. I have a data set that is in a grib1 format but with a Lambert Conformal Projection. If need be this file can be converted to ei

Re: [gdal-dev] Creating a new raster and adding data

2009-07-20 Thread Even Rouault
Amanda, you're not doing anything wrong now. It's rather a defect of the current C# GDAL bindings when dealing with multiple bands. See ticket http://trac.osgeo.org/gdal/ticket/3073 that contains a proposed fix for the issue. In the meantime, you can use the WriteRaster() method on each band i

Re: [gdal-dev] utm to geographic coordinates with gdalwarp

2009-07-20 Thread Markus Neteler
On Mon, Jul 20, 2009 at 6:13 PM, Anja Roesel wrote: > Hi list, > > My plan is to calculate UTM coordinates in geographic coordinates > (lat/lon), but I am not sure which parameters I need for the gdalwarp > command: gdalwarp -t_srs '+proj=? > May be some of you did this before and an help. This sh

Re: [gdal-dev] Gdal_merge

2009-07-20 Thread Frank Warmerdam
Denis Rykov wrote: Hi! I need merge two images - the first image is mutiband and second image is singleband. Can I do this operation with gdal_merge or gdal_merge works only with images with same number of bands? What utility from gdal library I can use for separate multiband image into some s

[gdal-dev] Gdal_merge

2009-07-20 Thread Denis Rykov
Hi! I need merge two images - the first image is mutiband and second image is singleband. Can I do this operation with gdal_merge or gdal_merge works only with images with same number of bands? What utility from gdal library I can use for separate multiband image into some singleband images? Thanks

[gdal-dev] General Questions about gdal usage with Grib1 Data Set

2009-07-20 Thread Cassanova, Bill
Hi, I am new to GDal and just beginning to dig into the intricacies of the library and would like some guidance on the best way to proceed. I have a data set that is in a grib1 format but with a Lambert Conformal Projection. If need be this file can be converted to either grib2 or shape file usi

RE: [gdal-dev] Converting raster pixel space to geospace

2009-07-20 Thread Martin Chapman
Gary, Can you send me the projection definition (string) and I will see if it works on my box. I’m not sure what you get when you download Frank Tools because I always just get the source code but see if you can find a file named “prime_meridian.csv”. That would be the data dir. Are you buil

RE: [gdal-dev] Creating a new raster and adding data

2009-07-20 Thread Henneke, Amanda M
Ok, so after some more experimentation, I think I found that the reason it was dying was due to a file being too large. When I run it on a smaller dataset, it seems I am successful in getting past the WriteRaster command in my code. The bad news is that it doesn't seem to be working properly. It

[gdal-dev] utm to geographic coordinates with gdalwarp

2009-07-20 Thread Anja Roesel
Hi list, My plan is to calculate UTM coordinates in geographic coordinates (lat/lon), but I am not sure which parameters I need for the gdalwarp command: gdalwarp -t_srs '+proj=? May be some of you did this before and an help. Thank you in advance, Anja

[gdal-dev] Re: Problem building gdal library using OCI

2009-07-20 Thread Peter J Halls
Srikanth, check the path config is generating (config.status) for the library area and correct it, if necessary. On Solaris I seem to remember that it added a suffix (rdbms?) to the path I specified and so could not find the libraries. Peter Srikanth wrote: Dear All, I am trying to bui

[gdal-dev] DWG support in gdal

2009-07-20 Thread Jorge Arévalo
Hello, I know that GDAL can be compiled with support for DWG format, but you need DWG direct support. I've tried to download the OpenDWG libraries from http://www.opendwg.org/the_oda_platform/dwgdirect, but you need membership, and it's not free. Is there any way to have DWG support in GDAL using

Re: [Gdal-dev] GDAL and ECW

2009-07-20 Thread jteasis
I got the files but all I have is Extract.exe and a batch file. Is this correct and is there a place I need to put them or do I need to put them in a specific location? Thank you so much for the help. It is greatly appreciated. Daniele Romagnoli wrote: > > Hi, > we have already done it for Ima

RE: [gdal-dev] Converting raster pixel space to geospace

2009-07-20 Thread Smart, Gary
Thanks Martin, but now to the next problem... I downloaded PRROJ.4 which seemed to configure and compile OK. Having set the PROJ_LIB as you proposed, I now get: ERROR 1: No PROJ.4 translation for source SRS, coordinate transformation initialization has failed. I guess I am still missi

Re: [Gdal-dev] GDAL and ECW

2009-07-20 Thread Daniele Romagnoli
Hi, we have already done it for ImageIO-Ext (a Java project which uses GDAL). You can take a look on the Imageio-ext setup guide which is available at [1]. It contains instructions to setup and build GDAL to support several external formats, as well as instructions to build the java project. You do

RE: [gdal-dev] Converting raster pixel space to geospace

2009-07-20 Thread Martin Chapman
Gary, Set your paths like such on startup or as an environment variable: GDAL_DATA points at the data dir that comes with gdal source. PROJ_LIB point to the nad directory that you download from proj4 website. string env = string("GDAL_DATA=") + dataPath; _putenv(env.c_str()); env = s

Re: [Gdal-dev] GDAL and ECW

2009-07-20 Thread jteasis
I looked at the gdal website about hooking up ECW with GDAL on windows but it says it needs to be done. Who can do this and where do I get these instructions? Even Rouault wrote: > > Le Thursday 16 July 2009 18:08:33 jteasis, vous avez écrit : >> I am working towards getting a program using ECW

RE: [gdal-dev] Converting raster pixel space to geospace

2009-07-20 Thread Smart, Gary
OK - I can get it to compile and not crash instantly (bonanza!) However, when I try to create the OGR transform using importFromWkt, I get the following: ERROR 6: Unable to load PROJ.4 library (libproj.so), creation of OGRCoordinateTransformation failed. Does anyone know what t

[gdal-dev] p.ha...@york.ac.uk,chaitanya...@gmail.com

2009-07-20 Thread Srikanth
Dear All, I am trying to build gdal library on windows using Cygwin with OCI support. I have Oracle client installed on my machine and ORACLE_HOME is set. I have enabled the oci support using --with-oci=yes and even provided -include and -lib paths. It is able to locate the include files but is no