[gdal-dev] Slow performance observed while querying the shapefile

2012-09-04 Thread kedardeshpande87
Hi, I have downloaded the latest shapefiles from US Census Bureau TIGER Shapefiles containaing the ZipCode Tabulation Area (2010) information. I am reading the shapefile to retrieve the zip code for a given point having latitude/longitude. I open the shapefile to get the data source, get the zipco

[gdal-dev] Corrupted .shp error when reading shapefile from multiple threads

2012-08-01 Thread kedardeshpande87
Hi, I am writing an application in Java with gdal's java bindings that reads a zipcode layer shapefile. I set a spatial filter of a point on the layer and get the zipcode by reading from the layer. ... DataSource ds = ogr.Open("path/to/shapefile"); Layer layer = ds.GetLayer(0); ... public void get

Re: [gdal-dev] Building from source excluding some packages

2012-07-05 Thread kedardeshpande87
Thanks Paolo, I tried building it with minimal options as you suggested. The source builds successfully, but when I try to use the library by making a call, I am getting an error in libgdal.so file saying some symbol not found. I am using swig java bindings. I get the following error: Unsatisfied

[gdal-dev] UnsatisfiedLinkError: building with Swig Java bindings

2012-07-02 Thread kedardeshpande87
Hi, I am trying to build from source with Java bindings. I compiled the regular source with configure, make and make install first and then ran the GNUmake file from the gdal/swig/java directory. Now, I have created a small cmdline application in Java and I am trying to run it. It gets compiled. B

[gdal-dev] Error while building gdal source code with Swig Java

2012-06-28 Thread kedardeshpande87
Hi, I am trying to build the source with the swig bindings I am running it on RHEL5 64 bit. I ran the 'configure', 'make' and 'make install' from the gdal directory.This runs successfully and creates ligdal.so files For java, I go into gdal/swig/java and run the 'make' command. I am getting the fo

Re: [gdal-dev] Building from source on 64 bit environment

2012-06-27 Thread kedardeshpande87
Thanks Even, You were right. I was using the 32 bit JVM. Now I have avoided that error. But now I am getting another weird unsatisfied linker error as : java.lang.UnsatisfiedLinkError: .../gdal/build/.libs/libgdal.so.1: undefined symbol: _ZTVN6PCIDSK15PCIDSKExceptionE Any idea why I am getting t

[gdal-dev] Building from source on 64 bit environment

2012-06-27 Thread kedardeshpande87
Hi, I am trying to build the gdal from source on a 64 bit RHEL5. I am also using the swig bindings for Java. But I am getting UnsatisfiedLinkError with the error cause as : .../libogrjni.so: wrong ELF class: ELFCLASS64* (Possible cause: architecture word width mismatch)* Where can I set this opti

[gdal-dev] Building from source excluding some packages

2012-06-25 Thread kedardeshpande87
Hi, I am trying to build the gdal-1.9.1 from source code using simple make command. I am creating a small application that does not involve any graphics or any maps/visual output. Therefore I wanted to *exclude* some of the packages/directories while building the source such as raster formats supp

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

2012-06-12 Thread kedardeshpande87
Thanks dbnakuru, quote author="dbnakuru"> Otherwise what you can do is test to see if your point is in any of the polygons returned by OGR.  So let OGR do the initial checks then grab the vertices yourself and run a point in polygon t

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

2012-06-12 Thread kedardeshpande87
Frank, Thank you very much for the reply. I am still really curious about what could be the reason that it returns multiple features for a single point. The code for filtering which I have written is like this : ... OGRDataSource *ds = OGRSFDriverRegistrar::Open("shapefile_path", FALSE); OGRLaye

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

2012-06-11 Thread kedardeshpande87
Frank Warmerdam wrote > > There is no externally defined ordering, though the implementation in > each driver will presumably have some implicit ordering. > I am reading a TIGER shapefile provided by US Census Bureau: ... ogr.RegisterAll(); DataSource ds = ogr.open("path/to/shapefil"); if(ds ==