[gdal-dev] FGDB Opening Sample File

2011-04-27 Thread Paul Ramsey
Hi FGDB'ers, just getting started... I'm just trying out ogrinfo under Linux against various sample data and want to confirm some results... the file that Michael Smith sent gives me this result: [pramsey@localhost test-data]$ ogrinfo test_fgdb.gdb ERROR 1: GDB Error: Error opening \base2_some_lin

RE: [gdal-dev] nearblack troubles [SEC=UNCLASSIFIED]

2011-04-27 Thread Pinner, Luke
Worked for me using the following: #Change black to white gdalbuildvrt -srcnodata 0 -vrtnodata 255 to-be-decollared.vrt to-be-decollared.tif #Run nearblack -white nearblack -white -o decollared.tif to-be-decollared.vrt Luke -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailt

[gdal-dev] gdalwarp vertical datum shift question

2011-04-27 Thread Mark Warren
Hi, I have a question regarding gdalwarp. We would like to update gdalwarp to be able to be used for DEM files such that a vertical datum shift can be added to the files, as well as the horizontal warp. Especially we would want to be able to use the geoidgrids vertical grid shift option. As an ex

Re: [gdal-dev] nearblack troubles

2011-04-27 Thread Even Rouault
Le mercredi 27 avril 2011 17:57:26, Matt Wilkie a écrit : > Hi All, > > The geotiff here > (http://www.maphew.com/Itches/Decollaring_with_nearblack) has two > collars to be removed. The outermost consists of pure black (0,0,0) > while the innermost is off-white (ranges from 240 thru 255). I used >

[gdal-dev] nearblack troubles

2011-04-27 Thread Matt Wilkie
Hi All, The geotiff here (http://www.maphew.com/Itches/Decollaring_with_nearblack) has two collars to be removed. The outermost consists of pure black (0,0,0) while the innermost is off-white (ranges from 240 thru 255). I used gdalsetnull[1] to change 0,0,0 to nodata, then ran `nearblack -whi

Re: [gdal-dev] validate/clean geometry with OGR?

2011-04-27 Thread Eli Adam
Since you are going to PostGIS anyway cleaning in PostGIS is possible. Here is the 2.0 PostGIS doc, http://postgis.refractions.net/documentation/manual-svn/ST_MakeValid.html I think that this PostGIS 2.0 function grows out of an old contrib. I've used the contrib with great success in the pa

Re: [gdal-dev] validate/clean geometry with OGR?

2011-04-27 Thread Brent Fraser
Elijah, I've used GEOS Buffer function available via the OGR API (http://www.gdal.org/ogr/classOGRGeometry.html) to clean polygons: OGRGeometry *poTempGeometry = poGeometry->Buffer(0.0); // Let Geos fix the problem. Best Regards, Brent Fraser On 4/27/2011 8:36 AM, Elijah Robison wrote

Re: [gdal-dev] validate/clean geometry with OGR?

2011-04-27 Thread Stephen Woodbridge
On 4/27/2011 10:36 AM, Elijah Robison wrote: Hey devs, is anyone aware of an OGR approach to validate/clean geometries, for instance, as they are being converted from SHP to PostGRESql? It's not uncommon to have a handful of invalid geometries (usually self-intersecting polygons) in a parcel data

[gdal-dev] validate/clean geometry with OGR?

2011-04-27 Thread Elijah Robison
Hey devs, is anyone aware of an OGR approach to validate/clean geometries, for instance, as they are being converted from SHP to PostGRESql? It's not uncommon to have a handful of invalid geometries (usually self-intersecting polygons) in a parcel dataset, and it's impractical to correct them

Re: [gdal-dev] geotiff conflict

2011-04-27 Thread Julien Malik
Note that it will sacrify binary compatibility against casual builds. You will need to build against the Debian version of GDAL, not third parties builds. For casual builds, we have another solution : don't use hide-internal-symbols, and install the tiff/geotiff headers from gdal source tree