[gdal-dev] OGR GetExtent()

2011-01-28 Thread Mohammed Rashad
How to get the extent of an ogr data (shapefile). I need to read the xMin, yMin, xMax,yMax how to do that -- Rashad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] OGR GetExtent()

2011-01-28 Thread Chaitanya kumar CH
Rashad, There is an example of usage of GetExtent() in the code for ogrinfo utility. http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/ogrinfo.cpp#L379 On Fri, Jan 28, 2011 at 6:35 PM, Mohammed Rashad mohammedrasha...@gmail.com wrote: How to get the extent of an ogr data (shapefile). I need

[gdal-dev] strange output in reading points of linear ring

2011-01-28 Thread Mohammed Rashad
OGRPolygon *polygon = (OGRPolygon *) poGeometry; OGRLinearRing *extring = polygon-getExteriorRing(); for(int i=0;iextring-getNumPoints();i++) { cout extring-getX(i) : extring-getY(i) endl; } the

Re: [gdal-dev] strange output in reading points of linear ring

2011-01-28 Thread Frank Warmerdam
On 11-01-28 10:57 AM, Mohammed Rashad wrote: OGRPolygon *polygon = (OGRPolygon *) poGeometry; OGRLinearRing *extring = polygon-getExteriorRing(); for(int i=0;iextring-getNumPoints();i++) { cout extring-getX(i)

Re: [gdal-dev] Modis L1B SWATH: georef problem hdf to geotiff

2011-01-28 Thread anna auge
hi all,excuse me for not giving up. i undertook some additional tests, and i got the same problems i described below. But i can't believe that nobody is working with gdal and modis level 1b data. At least this format is listet as supported at http://www.gdal.org/frmt_hdf4.html.So my question: does

[gdal-dev] reproject

2011-01-28 Thread Mohammed Rashad
How to reproject a shapefile to geographic coordinates by code? using OGR -- Rashad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] ABI Version Specific Plugin Loading

2011-01-28 Thread Frank Warmerdam
Folks, In gdal trunk I have made changes to the way plugins are loaded for GDAL and OGR. Now each directory in the search path will first be checked for a subdirectory with the ABI version as the name (ie. /usr/local/lib/gdalplugins/1.8). If found that directory will be used instead of the

[gdal-dev] SDE Write forces a value into the FID Column

2011-01-28 Thread Craig Hunter
Hi, I've been working with the GDAL/OGR 1.7.3 release and writing geometries to SDE when I ran into an issue. The code forces a value into a SDE table's primary key field by automatically incrementing records starting with the value of 1. I don't see this as a practical implementation because