Re: [gdal-dev] Using Java bindings of GDAL library : UnsatisfiedLinkError

2012-06-08 Thread Chaitanya kumar CH
Kedar, I don't think setenv works at Linux terminal. Use the export command. export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd` You should also set GDAL_DATA to the data directory to gdal/data On Sat, Jun 9, 2012 at 7:24 AM, Kedar Deshpande wrote: > Hi, > > I am writing a simple program to read a

[gdal-dev] Using Java bindings of GDAL library : UnsatisfiedLinkError

2012-06-08 Thread Kedar Deshpande
Hi, I am writing a simple program to read a shapefile in Java on my linux machine using the gdal library's Java bindings. I followed the steps according to the link http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructionsUnix given on the GDAL library's site. In the gdal folder in gdal/swi

Re: [gdal-dev] How to Import one Subdataset to Netcdf

2012-06-08 Thread sigologo
Thanks a Lot Mr Etienne The file was imported correctly, but not too much how to make this batch for many files! Regards -- View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-Import-one-Subdataset-to-Netcdf-tp4980075p4980080.html Sent from the GDAL - Dev mailing list

Re: [gdal-dev] How to Import one Subdataset to Netcdf

2012-06-08 Thread Etienne Tourigny
Please consult the docs at http://www.gdal.org/frmt_netcdf.html You need to use one of the SUBDATASET_XX_NAME values for example gdal_translate NETCDF:"fnl_19990801_00_00.nc":T_CDC_3_CCY_10 tmp1.tif On Fri, Jun 8, 2012 at 7:13 PM, sigologo wrote: > Hello Everyone >  I'm import many files ntcdf

[gdal-dev] How to Import one Subdataset to Netcdf

2012-06-08 Thread sigologo
Hello Everyone I'm import many files ntcdf like fnl_19990801_00_00.nc... by console in Ubuntu 10.04LTS by gdal_traslate, but not knowing how insert subdataset T_CDC_3_CCY_10 *david@laptop:~/tesis/karina/netcdf$ gdal_translate -of netcdf fnl_19990801_00_00.nc out.gtiff Input file contains subdata

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-08 Thread Etienne Tourigny
On Fri, Jun 8, 2012 at 5:56 PM, Rutger wrote: > Hey, > > Thank you all for the replies, i really appreciate the help. > > @Anton, i have tried many different ways of refering to the file. Full path, > file only, back and forward slashes, double slashes etc. All have the same > result. I also would

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-08 Thread Rutger
Hey, Thank you all for the replies, i really appreciate the help. @Anton, i have tried many different ways of refering to the file. Full path, file only, back and forward slashes, double slashes etc. All have the same result. I also would expect this to be platform dependent, but not file format

Re: [gdal-dev] Accuracy of OGRLayer:SetSpatialFilter() API

2012-06-08 Thread Frank Warmerdam
Kedar, If you build GDAL/OGR without use of the GEOS library then I believe the spatial filtering is normally just based on bounding boxes. So you are likely getting back all the zip codes which have a bounding box including the target point. The SetSpatialFilter() method should have documentati

Re: [gdal-dev] Accuracy of OGRLayer:SetSpatialFilter() API

2012-06-08 Thread Kedar Deshpande
> > Hi, > > I am creating an application that reads a shapefile having Zipcode > Tabulation Area information (provided by US Census Bureau). > Once I get the layer, I am setting a spatial filter on it. I am passing a > OGRPoint object to it having some values for latitude and longitude. > After I a

[gdal-dev] Error using ogr2ogr to import sqlite table into FileGDB

2012-06-08 Thread Eric Goddard
Hello everyone, I'm attempting to import a non-spatial SQLite table into a File Geodatabase. I have gdal 1.9.0 compiled with FileGDB support on kubuntu 12.04 and it is working correctly. When I use $ogr2ogr -f "FileGDB" geodatabase.gdb database.db the command runs but for every record I get the

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-08 Thread Kyle Shannon
Command line works fine. I didn't have time to test well though. I will try to get on a windows machine and download tamas package and give it another shot. kss On Fri, Jun 8, 2012 at 9:31 AM, Etienne Tourigny wrote: > with commandline and/or python? > > I can do both fine using gdal-1.9.1 fro

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-08 Thread Etienne Tourigny
with commandline and/or python? I can do both fine using gdal-1.9.1 from osgeo4w (32bit), haven't tried Tamas' build yet On Fri, Jun 8, 2012 at 12:08 PM, Kyle Shannon wrote: > Etienne, Rutger, > I can reproduce on windows with 32 bit 1.9 branch and 1.9.1 from Tamas' site. >  In fact, I couldn't

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-08 Thread Kyle Shannon
Etienne, Rutger, I can reproduce on windows with 32 bit 1.9 branch and 1.9.1 from Tamas' site. In fact, I couldn't open any datasets. kss -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Etienne Tourigny Sent: Friday, June

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-08 Thread Anton Korosov
Hi Rutger, I remember I had similar problems when reading NetCDF in Windows. The solution in my case was pretty simple - I had to include the full path to the file in double quotes: Try this way (but replace this path with yours): ds = gdal.Open('NETCDF:"c:/data/LPRM-TMI_L3_DY_SOILM3_V001-2

Re: [gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-08 Thread Etienne Tourigny
Rutger, There should not be any difference when using the python bindings. If gdalinfo can read it the python bindings should also. I cannot reproduce your problem using gdal-1.9.1 under linux. Which exact version are you using? By the way, the vrtfile in unnecessary, because GDAL's Open accept

Re: [gdal-dev] ogr2ogr does not project coordinates in csv file

2012-06-08 Thread Even Rouault
Selon Johann Hirner : > Dear list, > > I am trying to transform a list of coordinates in a csv file from EPSG:4326 > to a KML in UTM 32N (EPSG:32632). I am using this command: > ogr2ogr.exe -f KML -t_srs epsg:32632 out.kml 4326.vrt > > However the output coordinates are not transformed (see output

[gdal-dev] ogr2ogr does not project coordinates in csv file

2012-06-08 Thread Johann Hirner
Dear list, I am trying to transform a list of coordinates in a csv file from EPSG:4326 to a KML in UTM 32N (EPSG:32632). I am using this command: ogr2ogr.exe -f KML -t_srs epsg:32632 out.kml 4326.vrt However the output coordinates are not transformed (see output below). What is it that I am mis

Re: [gdal-dev] how to store a shapefile afterobtaining from intersection of two different shapeFiles

2012-06-08 Thread Chaitanya kumar CH
Siva, You can create a new shapefile layer using the poGeometry2 objects. Set each of them to a feature object and add them to the layer. Refer to the OGR API Tutorial. http://www.gdal.org/ogr/ogr_apitut.html On Fri, Jun 8, 2012 at 11:38 AM, SIVA RAMA KRISHNA wrote: > mywindow::mywindow(QWidget

[gdal-dev] Reading a NetCDF file with python (not recognised as a supported dataset name

2012-06-08 Thread Rutger
Dear list, I am trying to open a NetCDF file with the Python bindings. My GDAL 1.9 build (Win32 from Tamas) shows the NetCDF driver when i run "gdalinfo --formats", so it should be possible. When using the pre-build command-line utilities all works well. But when i move to Python i get the messag