[gdal-dev] Re: problems with creating polygon

2011-07-12 Thread lengwei2008
I'm so sorry, I think I figure the problem out now poLayer = poDS->CreateLayer( "polygon", NULL, wkbPoint, NULL ); shall be changed to poLayer = poDS->CreateLayer( "polygon", NULL, wkbPolygon, NULL ); -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/problems-with-c

[gdal-dev] Re: problems with creating polygon

2011-07-12 Thread lengwei2008
I'm so sorry, I think I figure the problem out now poLayer = poDS->CreateLayer( "polygon", NULL, wkbPoint, NULL ); shall be changed to poLayer = poDS->CreateLayer( "polygon", NULL, wkbPolygon, NULL ); -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/problems-with-

[gdal-dev] problems with creating polygon

2011-07-12 Thread lengwei2008
Hi, I am a newer to OGR and I want to create a polygon feature, however it failed. The code are pasted below code: const char *pszDriverName = "ESRI Shapefile"; OGRSFDriver *poDriver; OGRRegisterAll(); poDriver = OGRSFDriverRegistrar::GetRegistrar()->GetDr

Re: [gdal-dev] [gdal-1.8.0] Get new Coordinates from Geotiff avoiding black area

2011-07-12 Thread Luiz Motta
Sorry Folk, I forgot the source of code. I have two type of version(python source), one for QGIS and other for terminal. 1) QGIS/Plugin: http://spatialserver.net/pyqgis_1.0/contributed/imgboundary.zip 2) Teminal: http://dl.dropbox.com/u/14847115/imgtruecorner_py.zip Thank Brian for remember th

Re: [gdal-dev] [gdal-1.8.0] Get new Coordinates from Geotiff avoiding black area

2011-07-12 Thread Brian Case
Luiz, do you have a url handy for the source code of that plugin? Brian On Tue, 2011-07-12 at 14:53 -0300, Luiz Motta wrote: > Met, > > I made a QGIS's plugin where calculate the 4 corners of polygon with > the real pixels inside. Maybe is useful for you. > The name of plugin is "Image Boundary

[gdal-dev] Improving the Documentation of Get/SetGeoTransform

2011-07-12 Thread Isaac Gerg
Hi all, I've spent some time today working with the SetGeoTransform function today and want to mention that the documentation doesn't seem quite clear and maybe even a bit misleading. In here, http://www.gdal.org/classGDALDataset.html#f9593cc241e7d140f5f3c4798a43a668, the transform is mentioned a

Re: [gdal-dev] Motion: Approve GDAL/OGR 1.8.1RC2 for release

2011-07-12 Thread Tamas Szekeres
+1 Tamas 2011/7/12 Frank Warmerdam > Motion: GDAL/OGR 1.8.1RC2 is approved as the official 1.8.1 > release. > > +1 Frank > > -- > > ---+-- > I set the clouds in motion - turn up | Frank Warmerdam, > warmer...@pobox.com

Re: [gdal-dev] [gdal-1.8.0] Get new Coordinates from Geotiff avoiding black area

2011-07-12 Thread Luiz Motta
Met, I made a QGIS's plugin where calculate the 4 corners of polygon with the real pixels inside. Maybe is useful for you. The name of plugin is "Image Boundary", The source is Python and use only GDAL library for process. Best regards, Luiz Motta 2011/7/12 Chaitanya kumar CH : > Mett, > > If I

Re: [gdal-dev] [gdal-1.8.0] Get new Coordinates from Geotiff avoiding black area

2011-07-12 Thread Chaitanya kumar CH
Mett, If I understand correctly, you need to remove the black borders of geotiff and reset the corner coordinates. GDAL's nearblack utility[1] might be of help to you. [1]: http://www.gdal.org/nearblack.html On Tue, Jul 12, 2011 at 9:37 PM, mett wrote: > Hello Everybody! > Does somebody know i

RE: [gdal-dev] OGR Geometry methods

2011-07-12 Thread Marius Jigmond
Indeed, SetAttributeFilter returns the right feature. Thanks Luke. FYI the ExecuteSQL bug submission is http://trac.osgeo.org/gdal/ticket/4156 -marius Date: Tue, 12 Jul 2011 12:31:03 -0400 Subject: Re: [gdal-dev] OGR Geometry methods From: luke.peter...@gmail.com To: mariusjigm...@hotmail

Re: [gdal-dev] OGR Geometry methods

2011-07-12 Thread Luke Peterson
On Tue, Jul 12, 2011 at 11:56 AM, Marius Jigmond wrote: > Strangely enough, ExecuteSQL works (it returns an osgeo.ogr.layer object > with one feature) with > > > 'select FID from judeteEPSG3844 where DENJUD = "CLUJ"' > > but later a GetField('FID') request returns "Illegal field requested in > Ge

Re: [gdal-dev] Motion: Approve GDAL/OGR 1.8.1RC2 for release

2011-07-12 Thread Daniel Morissette
On 11-07-12 11:05 AM, Frank Warmerdam wrote: Motion: GDAL/OGR 1.8.1RC2 is approved as the official 1.8.1 release. +1 Daniel -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 ___ gdal-dev mailing lis

[gdal-dev] [gdal-1.8.0] Get new Coordinates from Geotiff avoiding black area

2011-07-12 Thread mett
Hello Everybody! Does somebody know if there is a smart way to get the coordinates of a GeoTiff of the real data (avoinding the black background)? I mean, I have the geocoordinates of the image, but they are not referred to the "Real" data of the image but just to its corners. I know that I can use

RE: [gdal-dev] OGR Geometry methods

2011-07-12 Thread Marius Jigmond
Strangely enough, ExecuteSQL works (it returns an osgeo.ogr.layer object with one feature) with 'select FID from judeteEPSG3844 where DENJUD = "CLUJ"' but later a GetField('FID') request returns "Illegal field requested in GetField()" -marius Date: Tue, 12 Jul 2011 11:36:42 -0400 Sub

[gdal-dev] Motion: Approve GDAL/OGR 1.8.1RC2 for release

2011-07-12 Thread Frank Warmerdam
Motion: GDAL/OGR 1.8.1RC2 is approved as the official 1.8.1 release. +1 Frank -- ---+-- I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/

Re: [gdal-dev] GDALComputeRasterMinMax Error

2011-07-12 Thread Chaitanya kumar CH
RSyaoxin, Check if poBand->GetNoDataValue() is actually returning a nodata value. If your raster has an out of range nodata value, there is going to be a problem. poBand->SetNoDataValue(nodata) will unset the nodata value if the nodata variable is out of range. On Tue, Jul 12, 2011 at 7:48 PM, RS

[gdal-dev] GDALComputeRasterMinMax Error

2011-07-12 Thread RSyaoxin
Hi,all I have a 32-float image with much "NoDatavalue",and I want to get the minimum value and maximum value.Here is my code: int bGotMin, bGotMax; double adfMinMax[2]; double nodata=poBand->GetNoDataValue(); poBand->SetNoDataValue(nodata);

Re: [gdal-dev] GDAL/OGR 1.8.1RC2 Prepared

2011-07-12 Thread Daniel Morissette
On 11-07-09 12:37 PM, Frank Warmerdam wrote: Folks, Somewhat belatedly I have prepared 1.8.1RC2 at: http://download.osgeo.org/gdal/gdal-1.8.1RC2.tar.gz http://download.osgeo.org/gdal/gdal181RC2.zip Please test and report issues. I will raise a motion to approve it shortly after I have d

Re: [gdal-dev] GDAL/OGR 1.8.1RC2 Prepared

2011-07-12 Thread Jeff McKenna
No issues here on Windows. Any chance that the 1.8.1 release can happen today? (my selfish request, as I am packaging a MapServer release today also) -jeff On 11-07-09 1:37 PM, Frank Warmerdam wrote: Folks, Somewhat belatedly I have prepared 1.8.1RC2 at: http://download.osgeo.org/gdal/

Re: [gdal-dev] PDF via podofo

2011-07-12 Thread Joaquim Luis
Evan, It seams to work now. I say "seams" because with podofo it also requires to have available "pdftoppm" gdal_translate lixo.pdf lixo.tiff Input file size is 1239, 1754 0'pdftoppm' is not recognized as an internal or external command, but since your fix to build with poppler 0.14 works jus

[gdal-dev] RE: How to get some special metadata of HDF5 Cosmo-Skymed file

2011-07-12 Thread RSyaoxin
Thanks Alex Mantaut.I have got the right result. Best regards. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-some-special-metadata-of-HDF5-Cosmo-Skymed-file-tp6567852p6574997.html Sent from the GDAL - Dev mailing list archive at Nabble.com. ___

Re: [gdal-dev] usage of subprocess.call

2011-07-12 Thread Chaitanya kumar CH
\EIS\Python25\lib\**subprocess.py", line 816, in > _execute_child > startupinfo) > WindowsError: [Error 193] > > My problem is not the error but, is there a way to "get" the error and stop > the process in a more smoother way instead of stopping so drastically?

Re: [gdal-dev] Re: Change the spatial reference of a shapeile

2011-07-12 Thread Chaitanya kumar CH
Solimyr, Since mean_provaimp didn't have any extent data at first, it is created during the ogr2ogr process. There must be some features that are beyond the extents of the other shapefile for this to have extended extents. FYI, the bounds are stored in the .shp file's header from the 37th to 68th

[gdal-dev] usage of subprocess.call

2011-07-12 Thread António Rocha
ng so drastically? Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6286 (20110712) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] PDF via podofo

2011-07-12 Thread Joaquim Luis
On 12-07-2011 12:20, Even Rouault wrote: Le mardi 12 juillet 2011 12:59:31, Joaquim Luis a écrit : Hi, I am still having troubles with a build with PDF support. I used to have a working solution for my gdalread MEX by using poppler 0.14, however now GDAL gives an error when linking with it (som

Re: [gdal-dev] PDF via podofo

2011-07-12 Thread Even Rouault
Le mardi 12 juillet 2011 12:59:31, Joaquim Luis a écrit : > Hi, > > I am still having troubles with a build with PDF support. I used to have > a working solution for my gdalread MEX by using poppler 0.14, however > now GDAL gives an error when linking with it (something about a member > that does

[gdal-dev] PDF via podofo

2011-07-12 Thread Joaquim Luis
Hi, I am still having troubles with a build with PDF support. I used to have a working solution for my gdalread MEX by using poppler 0.14, however now GDAL gives an error when linking with it (something about a member that does not exist). So I turned again to 0.16 and managed to compile ever

[gdal-dev] Re: Change the spatial reference of a shapeile

2011-07-12 Thread Solimyr
Thx for the answers, now I get the right srs but the extent is different: SHAPE 1 ( the one where I want to get the info and copy to the new) $ ogrinfo -al provaimp.shp INFO: Open of `provaimp.shp' using driver `ESRI Shapefile' successful. Layer name: provaimp Geometry: Polygon Feature Coun

[gdal-dev] Re: [GRASS-translations] Translation of Next, Back and Cancel buttons in Georecrtify

2011-07-12 Thread Monica Buescu
Hello I would say that we clearly need to tag them. But, since this is a decision tha might take some time, can anyone give me a few tips on tagging OK, Cancel, Next, Back buttons in Georectify module and Location Wizard interfaces' Because I need to have spanish working version ASAP. I just need a