Re: [gdal-dev] gdal and hdf-eos

2011-03-03 Thread Chaitanya kumar CH
Matt, Did you build GDAL yourself? HDF4 format is not compiled by default. You can check if this by running the command "gdalinfo --formats". See if HDF4 is in the output. http://www.gdal.org/frmt_hdf4.html On Fri, Mar 4, 2011 at 6:03 AM, Matt Funk wrote: > Hi, > i am using python/gdal. I am t

[gdal-dev] Python bindings to force geometry collections to mulitpoint, multipolygon, multiline

2011-03-03 Thread Dan Putler
All, I am currently running gdal 1.7.3, and it appears that in this version the geometry factory methods to force a geometry collection to multipoint, etc. aren't exposed to Python. Am I wrong? If not, are they exposed in gdal 1.8? Dan ___ gdal-dev

[gdal-dev] gdal and hdf-eos

2011-03-03 Thread Matt Funk
Hi, i am using python/gdal. I am trying to open a MODIS satellite file from the Terra satellite (which is hdf4-eos format). Doing: ds = gdal.Open(file) drivertype=ds.GetDriver().LongName returns ERROR 4: `C:/tmp/SrcData/2010Data/MODISData/MOD03/MOD03.A2010002.1810.005.201025806273

Re: [gdal-dev] Polygon

2011-03-03 Thread Chaitanya kumar CH
Alexandre, Can you send your code as a .cpp file as an attachment? Also, I think you should change the line Buffer[size+1]='\0'; to Buffer[size]='\0'; On Thu, Mar 3, 2011 at 6:34 PM, Alexandre Leclerc wrote: > Hello I try to draw a polygon from shapefile on geoconcept. > > > > But the points tha

[gdal-dev] Polygon(suite)

2011-03-03 Thread Alexandre Leclerc
Sorry, I forgot to tell you that I used SHPReadOGRObject for read the SHPObject. put it at the beginning of the code of previous mail SHPHandle hSHP = SHPOpen(chemin.c_str(),"rb"); SHPObject *psShape = SHPReadObject(hSHP,0); OGRGeometry *poPoly = SHPReadOGRObject(hSHP, 0,psShape);

[gdal-dev] Polygon

2011-03-03 Thread Alexandre Leclerc
Hello I try to draw a polygon from shapefile on geoconcept. But the points that I get are corrupted. Strangely a shapefile with no prj, and one ring in WGS84 works. Here I try with a prj with lambert 2 extend projection. The shapefile contains 2 rings. See my code below.

[gdal-dev] Re: gdal-dev Digest, Vol 82, Issue 4

2011-03-03 Thread Mike Leahy
Hi Jeff, I was aware of the php_ogr module in the MS4W project...if I was working in the Windows environment I would certainly consider that first for the ogr functionality. But it would also be nice to be able to get this in the Linux environment...as well as to get the gdal and osr modules r