[gdal-dev] Re: [mapserver-users] converting a multi-thousand polygon shapefileinto a shapefile that just contains the exterior vertices

2009-04-29 Thread Rahkonen Jukka
Hi, What you want is the union of all the individual image polygons. At least it can be made with GIS applications like QGis or OpenJUMP. I don't know of any tool that could do it directly from command line but such can exist, though. -Jukka Rahkonen- John Mitchell wrote: Hi, I have create

Re: [gdal-dev] Re: Joining a shape file with a DBF file with ogr2ogr

2009-04-29 Thread Stephen Woodbridge
Yewondwossen Assefa wrote: Hi, I have a fairly large shape file (shp, shx, dbf) and a fairly small DBF file. I would like to do a join on a specific field, with the expected result being a small shape file (same number of records as my small dbf file). There are a couple of ways from what

[gdal-dev] converting a multi-thousand polygon shapefile into a shapefile that just contains the exterior vertices

2009-04-29 Thread John Mitchell
Hi, I have created a shape file via gdaltindex based a few thousand geotiff's. I don't need all of the interior grids within this shape file just the exterior vertices's. How can I convert this shape file so that it does not have the interior grid and just the exterior vertices's. I am displayi

[gdal-dev] Re: Joining a shape file with a DBF file with ogr2ogr

2009-04-29 Thread Yewondwossen Assefa
Hi, I have a fairly large shape file (shp, shx, dbf) and a fairly small DBF file. I would like to do a join on a specific field, with the expected result being a small shape file (same number of records as my small dbf file). There are a couple of ways from what I can see that I could achi

Re: [gdal-dev] Binder installer in GDAL trunk has the wrong version

2009-04-29 Thread Even Rouault
In fact, updating the swig/python/setup.py is documented in point 3) of the HOWTO-RELEASE procedure. The question is : should be it updated now, during the development process, or just before producing the first beta/RC. Le Wednesday 29 April 2009 21:16:05 Lucena, Ivan, vous avez écrit : > That

Re: [gdal-dev] ogr2ogr in fwtools 2.3 on windows gml to shp issue

2009-04-29 Thread Even Rouault
Peter, I've just finally completely removed that test on the maximum number of bytes inside a geometry tag. I've found a shapefile that translated to GML produces a single geometry element a bit more than 100 MB... and ogr can parse it succesfully. There was indeed a test on the number of entit

[gdal-dev] Binder installer in GDAL trunk has the wrong version

2009-04-29 Thread Lucena, Ivan
That is what I did: C:\Dev\gdal\swig\python> python setup.py bdist_wininst And that generates : C:\Dev\gdal\swig\python\dist\GDAL-1.6.0.win32-py2.5.exe It should be 1.7.0 C:\Dev\gdal\swig\python>more ..\..\VERSION 1.7.0 The error seams to be at setup.py line 136: http://trac.osgeo.org/gdal/

Re: [gdal-dev] ogr2ogr in fwtools 2.3 on windows gml to shp issue

2009-04-29 Thread Even Rouault
What is the relationship with the original topic of this thread ? I'm not sure how you could run "gdal_polygonize" as such as there's no gdal_polygonize.bat provided by default, so I imagine you created your own. Did you remember of running "setfw.bat" before to set up appropriate environment v

Re: [gdal-dev] gdal-1.6.0 Python binding on Windows

2009-04-29 Thread Even Rouault
I don't use Windows myself, but Tamas Szekeres provides a ready-to-use-and-compile SDK with multiple GDAL and MapServer versions and MSVC versions. And it has support for Python bindings. See http://vbkto.dyndns.org:1280/sdk/Default.aspx Le Wednesday 29 April 2009 16:31:09 Gong, Shawn (Contract

Re: [gdal-dev] ogr2ogr in fwtools 2.3 on windows gml to shp issue

2009-04-29 Thread Doug_Newcomb
There seems to be an issue with the python scripts in fwtools 2.3.0 and 2.3.1 Example: C:\Program Files\FWTools2.3.1>gdal_polygonize Traceback (most recent call last): File "C:\PROGRA~1\FWTOOL~1.1\bin\gdal_polygonize.py", line 34, in import gdal, ogr, osr File "C:\PROGRA~1\FWTOOL~1.1\p

Re: [gdal-dev] ogr2ogr in fwtools 2.3 on windows gml to shp issue

2009-04-29 Thread Even Rouault
Hi, As far as the message "ERROR 1: Too much data inside one element. File probably corrupted" is concerned, I think that FWTools-2.3.0 showed a temporary regression where the maximum size for a geometry was limited to 100,000 bytes to avoid reading corrupted/hostile files. This limit was prove

[gdal-dev] ogr2ogr in fwtools 2.3 on windows gml to shp issue

2009-04-29 Thread Rushforth, Peter
Hi, Using fwtools 2.3 on windows, I run the ogr2ogr command on a gml file to create a shp file. I get the following error message: C:\Program Files\FWTools2.3.0\>ogr2ogr -f "ESRI Shapefile" peter.shp test.gml ERROR 1: Too much data inside one element. File probably corrupted When I cut down

[gdal-dev] gdal-1.6.0 Python binding on Windows

2009-04-29 Thread Gong, Shawn (Contractor)
hi list, I had asked how to build new-generation Python binding on Windows for gdal, but got no answer. (I know that on Linux, "configure --with-python" does it. Couldn't find similar thing on nmake.opt) I did "nmake /f makefile.vc" and "nmake /f makefile.vc install" It created gdal16.dll in \lo

[gdal-dev] converting WideString to String in ogr2ogr

2009-04-29 Thread Russell McOrmond
I'm trying to convert some data in ArcSDE that has WideStrings to an ESRI Shapefile. The Data set has English and French text strings which are Unicode (WideString) encoded. When I tried to convert: ogr2ogr -f "ESRI Shapefile" SOIL_XDATA_PED_CA_SLC_SOIL_ORDER_15M_R2.shp "SDE:database,po