Re: [gdal-dev] How to identify a point is belong to a polygon ?

2012-07-20 Thread taibc
Hi Chaitanya, I still can't run the method "Geometry::Within". And I got the error: "GEOS support not enable" when trying use this method. Please find the attached file for sample code. http://osgeo-org.1560.n6.nabble.com/file/n4989766/Source1.cpp Source1.cpp About spatial filter, you said that

Re: [gdal-dev] New OGR driver to read OpenStreetMap .osm / .pbf files

2012-07-20 Thread Even Rouault
> > However, select with SQL feels sub-optimal. > > Yes, when you use ogr2ogr with explicit layer names, there are > optimizations. For example, when you only specify the layer 'points', the > OSM driver will not even try to index the nodes into the temporary > database because it is not needed.

Re: [gdal-dev] Problem reading shapefile via /vsizip

2012-07-20 Thread Even Rouault
Le vendredi 13 juillet 2012 12:40:34, Smith, Michael ERDC-CRREL-NH a écrit : > Ticket created > > http://trac.osgeo.org/gdal/ticket/4748 Confirmed and fixed now. Thanks for reporting ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.

Re: [gdal-dev] Memory leaks when using SQL queries with shapefiles

2012-07-20 Thread Even Rouault
Le vendredi 13 juillet 2012 16:22:34, Pierluigi Guasqui a écrit : > Even, > > I opened a ticket in GDAL Trac: http://trac.osgeo.org/gdal/ticket/4749. > Confirmed and fixed now. Thanks for reporting. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org ht

[gdal-dev] geotransform rotation and gdal_merge

2012-07-20 Thread David Hoese
I'm attempting to put aircraft scan data into geotiffs (1-3 scanlines each) and then use gdal_merge.py to combine them into one large geotiff that has the entire aircraft's path. The scan lines are 15 pixels wide and taken every 10 seconds, the geotiffs are wgs84 lat/lon, and I have lat/lon va

Re: [gdal-dev] Ogr: ExecuteSQL with MSSQL and geometry column

2012-07-20 Thread Benjamin
If you want I can remove the MemoryDriver, but it is still the same thing. [code] string request = "SELECT * FROM MY_TABLE WHERE CHART_ID = 'Z15F43AJ'"; Layer serverLayer = RclDataSource.ExecuteSQL(request, null, ""); int nbFeature = serverLayer.GetFeatureCount(1); Feature serverFeature = server

Re: [gdal-dev] New OGR driver to read OpenStreetMap .osm / .pbf files

2012-07-20 Thread Jukka Rahkonen
Rahkonen Jukka mmmtike.fi> writes: > > > Even Rouault wrote: > > > Do you have comparisons of the performance with osm2pgsql on the same PC and > > with the same data ? I'd be curious if that slow down effect is found with every > > tool, or if it is something specific to the way sqlite is

Re: [gdal-dev] [OSGeo-Discuss] how to use gdal_calc.py?

2012-07-20 Thread Chaitanya kumar CH
We should have this discussion in the gdal-dev list. dhonjuh, Try this at the command prompt; not the python command prompt. $ gdal_calc.py -A cknp_dem_30m.tif --calc A/2 --outfile t.tif Also, make sure you did not make any inadvertent changes to the script. On Fri, Jul 20, 2012 at 2:00 PM, dho