Re: [gdal-dev] Unable to create OGRSpatialReference

2012-10-21 Thread jcurru
Frank, I've been working a little bit with your ideas. The target is to realize towgs84 parameters automatically. Of course it doesn't work many times because all the procedures I use fail and/or because my code is wrong. I don't know, but maybe you can find it useful. I use Embarcadero (former

Re: [gdal-dev] Unable to create OGRSpatialReference

2012-10-20 Thread jcurru
Frank, Thanks you for your expert answer. It opens for me two or three new ways to look for the /lost/ parameter. My interest is not only in SHP, but your ideas might solve part of my problem. As for what you say I'm up with fixing this with your support (ie. testing, prompting) I am at your

[gdal-dev] Problem using image bands

2012-10-19 Thread jcurru
Hello! I have a problem reading an ECW image. I want to read the image using only the first band. So I use: int bmap[3] = {1,1,1}; GDALImage-RasterIO( GF_Read, x, // int nXOff, y,

Re: [gdal-dev] Problem using image bands

2012-10-19 Thread jcurru
Ouch! Thank you very much, Even. I should have asked sooner, instead of going to bed at 5 in the morning... :-) Yes, I have to read into a RGB buffer, but your solution would increase a lot the loading time for other images that are working well. I have read this:

Re: [gdal-dev] Problem using image bands

2012-10-19 Thread jcurru
/changeset/25107. So, do you recommend me to change the code in ecwdataset.cpp and rebuild the library? Thanks again!   José Antonio Carmena Flores De: Even Rouault [via OSGeo.org] ml-node+s1560n5009874...@n6.nabble.com Para: jcurru jcu...@yahoo.es Enviado

Re: [gdal-dev] Unable to create OGRSpatialReference

2012-10-19 Thread jcurru
Thank you again, Even. Well, I've taken a look at the documentation you mention, but no answers there, just an explanation about wgsto84 parameters and a proposal for extending the geotiff standard in order to embed the famous parameter. I guess that if you don't say oh man, didn' you know this

Re: [gdal-dev] Unable to create OGRSpatialReference

2012-10-19 Thread jcurru
Frank, First of all let me tell you thanks for your work. Thanks is not enough but my poor english would put me in troubles if I tried to say something more complicated. And thank you very much for your answer. Getting help from you from the other side of the ocean (I live in Madrid, Spain) is a

[gdal-dev] Learning GDAL

2010-04-21 Thread jcurru
Hi. I'm new to GDAL, but supposed to have some experience in C++. I'm trying to use GDAL in my project because CxImage, the image library I was using so far, is not able to deal with big images. After several days fighting against my compiler I could finally build gdal.lib (I'm using Builder C++,

[gdal-dev] Compiling in Embarcadero's CBuilder

2010-04-20 Thread jcurru
Hello. I'm trying to build gdal with Embarcadero's CBuilder++ 2010 (former Borland C++ Builder). I get this error in rasterio.cpp: [BCC32 Error] rasterio.cpp(869): E2335 Overloaded 'void CopyWordfloat(const float,float )' ambiguous in this context Full parser context rasterio.cpp(854):

[gdal-dev] Re: Compiling in Embarcadero's CBuilder

2010-04-20 Thread jcurru
Thanks for your answer, Philippe. I could make rasterio.cpp compile by making the following change (line 38): // For now, work around MSVC++ 6.0's broken template support. If this value // is not defined, the old GDALCopyWords implementation is used. #define USE_NEW_COPYWORDS 1 #endif #undef