Re: [gdal-dev] Simplify a polygon topology doesn't preserve the topology

2012-02-20 Thread pcreso
Does Postgis ST_SimplifyPreserveTopology() work for you? http://postgis.org/docs/ST_SimplifyPreserveTopology.html Cheers,   Brent Wood --- On Tue, 2/21/12, Arnd Wippermann wrote: From: Arnd Wippermann Subject: [gdal-dev] Simplify a polygon topology doesn't preserve the topology To: gdal-de

[gdal-dev] nmake.opt compile rule changes

2012-02-20 Thread Frank Warmerdam
Folks, If you don't build on Windows using visual studio NMAKE files you can stop reading. I have removed the .cc.obj and .c.obj rules from the nmake.opt and ensured that CPPFLAGS gets set so that the default NMAKE rules for compiling can get used. The advantage of this is that they will build

[gdal-dev] Simplify a polygon topology doesn't preserve the topology

2012-02-20 Thread Arnd Wippermann
Hi, I try to simplify a polygon topology (GDAL 1.9.0, released 2011/12/29). SET INPUT="top1_bene.gml" SET OUTPUT_01="top1_bene_sim_01.gml" SET OUTPUT_005="top1_bene_sim_005.gml" SET OUTPUT_001="top1_bene_sim_001.gml" "%prgpfad%\ogr2ogr" -f "GML" %OUTPUT_01% %INPUT% -simplify 0.1 "%prgpfad%\og

[gdal-dev] gdal / mapserver draw failure

2012-02-20 Thread Aaron Sims
We are using an openlayers frontend to utilize mapserver via phpmapscript to read some colorized tif files we have made, and then render a png file on a webpage via gdal.This process seems to work about 95% of the time, The other 5%, we are getting no images and errors kicked out to the httpd e

Re: [gdal-dev] Creating NITF with GCPs

2012-02-20 Thread Even Rouault
Le lundi 20 février 2012 20:46:22, Livneh Yehiyam a écrit : > Thanks Even. > We haven't made the switch to 1.9 yet. I will add it to our 1.8.1. Do you > see any problems with that? I don't anticipate huge issues, but the driver has evolved a bit during 1.9 cycle, so the patch won't apply cleanly,

Re: [gdal-dev] Creating NITF with GCPs

2012-02-20 Thread Livneh Yehiyam
Thanks Even. We haven't made the switch to 1.9 yet. I will add it to our 1.8.1. Do you see any problems with that? Sent from my mobile - From: "Even Rouault" Subject: Re: [gdal-dev] Creating NITF with GCPs Date: 20 פברואר 2012 21:20 Le lundi 20 février 2012 17:24:3

Re: [gdal-dev] Creating NITF with GCPs

2012-02-20 Thread Even Rouault
Le lundi 20 février 2012 17:24:35, Livneh Yehiyam a écrit : > Hi > I'm trying to write an NITF image where the geo-registration is with 4 > GCPs. Is this functionality supported by the NITF driver? Looking through > the code it seems that there is no way to create the IGEOLO data to the > NITF from

RE: [gdal-dev] GEOS geometries SRS not set

2012-02-20 Thread Martin Chapman
Frank, Thanks for the clarification. Is there a way to submit a ticket if I don't have a login? Best regards, Martin -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Monday, February 20, 2012 11:58 AM

Re: [gdal-dev] GEOS geometries SRS not set

2012-02-20 Thread Frank Warmerdam
On 12-02-20 10:54 AM, Martin Chapman wrote: It appears that when new OGR geometries are created using the spatial operations features of GEOS via OGR methods like ConvexHull, Buffer, etc… that the spatial reference of the newly created OGR geometry is not assigned. Is this by design or is it an o

[gdal-dev] GEOS geometries SRS not set

2012-02-20 Thread Martin Chapman
It appears that when new OGR geometries are created using the spatial operations features of GEOS via OGR methods like ConvexHull, Buffer, etc. that the spatial reference of the newly created OGR geometry is not assigned. Is this by design or is it an oversight? If by design, what was the reasoni

[gdal-dev] Creating NITF with GCPs

2012-02-20 Thread Livneh Yehiyam
Hi I'm trying to write an NITF image where the geo-registration is with 4 GCPs. Is this functionality supported by the NITF driver? Looking through the code it seems that there is no way to create the IGEOLO data to the NITF from the supplied GCPs, but rather it will always calculate the IGEOLO

Re: [gdal-dev] Re: org2ogr, KML, and srs definition

2012-02-20 Thread Etienne Tourigny
Brent, to use that experimental feature (available in 1.9.0), you need to set GDAL_FIX_ESRI_WKT=TOWGS84 Try the following: GDAL_FIX_ESRI_WKT=TOWGS84 gdalsrsinfo If you see the towgs84 parameters in the PROJ.4 string, then it will work with ogr2ogr. This is documented in http://www.gdal.org/ogr

Re: [gdal-dev] divide a big shape file using ogr2ogr

2012-02-20 Thread Jeff McKenna
On 12-02-17 3:25 PM, ahmet temiz wrote: hello how can I divide a big shape file into 5 equal pieces using ogr2ogr ? You could use shp2tile to split your shp into equal parts: http://imaptools.com/download-software.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http: