Re: [gdal-dev] save raster as point-vector file

2011-08-12 Thread Chaitanya kumar CH
Mateusz, This is what I did to process evap_OBC.asc ... 1. Run the command "gdal2xyz.py -csv evap_OBC.asc evap_OBC.csv". I got a csv file. 2. Edited the file evap_OBC.csv to add the line "Longitude,Latitude,Value" (without the quotes) at the beginning. 3. Created a file named evap_OBC.vrt with th

Re: [gdal-dev] SWIG JNI binding question with GetMetadataItem function

2011-08-12 Thread Even Rouault
> > Indeed I was lacking the -fno-strict-aliasing switch in the C++ flags in > my > Android.mk file. > > However, I've added this switch to both LOCAL_CFLAGS and LOCAL_CPPFLAGS > for the libgdaljni.so build and I continue to get the error during > execution. At least now you have eliminated one

Re: [gdal-dev] gdal_translate eats projection parameter values

2011-08-12 Thread Frank Warmerdam
On Fri, Aug 12, 2011 at 10:27 AM, Hermann Peifer wrote: > Thanks for the quick response, I will do as you suggested. I wasn't aware of > the ESRI:: prefix and wrongly assumed that GDAL would always auto-detect > ESRI-isms in the projection files and morph them. > > The background of the issue is t

Re: [gdal-dev] gdal_translate eats projection parameter values

2011-08-12 Thread Hermann Peifer
On 12/08/2011 17:37, Even Rouault wrote: Selon Hermann Peifer: In fact, it is not a bug, but just one of those annoying subtelties you encounter when playing with projections. (...) So : gdal_translate dummy.asc dummy.tif -a_srs ESRI::ETRS_1989_LAEA_L52_M10.prj Or you could just copy ETRS_1

Re: [gdal-dev] gdal_translate eats projection parameter values

2011-08-12 Thread Even Rouault
Selon Hermann Peifer : In fact, it is not a bug, but just one of those annoying subtelties you encounter when playing with projections. Your .prj file (as most files with .prj extension) doesn't contain the "standard" OGC WKT formulation that GDAL/OGR uses internally, but a WKT in its ESRI formul

[gdal-dev] gdal_translate eats projection parameter values

2011-08-12 Thread Hermann Peifer
Hi, PARAMETER["Central_Meridian",10.0] from the projection file comes out as: PARAMETER["longitude_of_center",0] PARAMETER["Latitude_Of_Origin",52.0] is changed to PARAMETER["latitude_of_center",0] See the details below. Is there something wrong with my projection file or rather with GDAL

Re: [gdal-dev] save raster as point-vector file

2011-08-12 Thread Mateusz Kędzior
Hi Chaitanya, but there is no example with CSV file stored in local hard disc. I see an example with shp file - there is no full path to it... but as I tell, when I leave only filename of CSV and use ogrinfo tool on such VRT file, I get information about empty file without any geometry or tables o

Re: [gdal-dev] save raster as point-vector file

2011-08-12 Thread Chaitanya kumar CH
Mateusz, Refer to OGR's VRT format driver page. http://www.gdal.org/ogr/drv_vrt.html 2011/8/11 Mateusz Kędzior > Hi Chaitanya, > > I try to add full path to csv file - is it correct? > > ===NEW VRT > FILE > >