[gdal-dev] Polygonize and 8CONNECTED

2011-03-09 Thread Francis Markham
ith the same attribute value (an id number) into a single geometry? Thanks for your help, Francis Markham ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Best practices for concurrent writes with GDAL (was RasterIO in paralel)

2011-02-09 Thread Francis Markham
Thanks for the feedback Antonio and Even, it is very helpful. I probably should have specified that I want to do message passing across a cluster using MPI, rather than shared memory multithreading. I'll do some performance testing to see what the relative speeds of having workers send their data

Re: [gdal-dev] Best practices for concurrent writes with GDAL (was RasterIO in paralel)

2011-02-08 Thread Francis Markham
Is there any way to disable the block cache altogether? Does setting the cache size to zero work? And is there a way to do this from a python script? Cheers, Francis On 9 February 2011 10:40, Frank Warmerdam wrote: > So, with some care you could in theory write from multiple threads, > but y

Re: [gdal-dev] Best practices for concurrent writes with GDAL (was RasterIO in paralel)

2011-02-08 Thread Francis Markham
Ouch, I guess I'll be slicing and mosaicing, sending all my data across the network, or looking for another IO library. Which approach would you recommend? Are you aware if any of the major non-GDAL libraries for popular formats (e.g. libgeotiff) support concurrent writes? -Francis On 9 Februar

[gdal-dev] Best practices for concurrent writes with GDAL (was RasterIO in paralel)

2011-02-08 Thread Francis Markham
reads to read and write concurrently, but I am unsure how I might do this safely. Any suggestions would be greatly appreciated. Kind Regards, Francis Markham On 9 February 2011 09:14, Even Rouault wrote: > Le mardi 08 février 2011 23:07:36, Stefano Moratto a écrit : > > Thanks for

Re: [gdal-dev] GDAL contouring problem

2010-11-28 Thread Francis Markham
Is there any reason not to include a heuristic that uses strtod() or similar to test for the zeroness of the last argument? -Francis Markham On 29 November 2010 15:24, Frank Warmerdam wrote: > Ole Nielsen wrote: >> >> I am posting this again without test files attached due the 50

Re: [gdal-dev] Intersection of polygon layers

2010-11-05 Thread Francis Markham
If you're using Python, I'd recommend checking out the shapely package ( http://pypi.python.org/pypi/Shapely ): You can load your shapefile using ogr, and then import the geometry to shapely where you can do the geometry predicate calculations: >>> import ogr >>> from shapely.wkb import loads >>>

Re: [gdal-dev] ArcGIS 10

2010-08-11 Thread Francis Markham
Thanks for your encyclopedic response Jason! If you don't mind detailing the problems with running GDAL scripts in process, and your work-around for avoiding it, I would be very interested. Cheers, Francis On 12 August 2010 02:49, Jason Roberts wrote: > ArcGIS 10 installs Python 2.6 and numpy

Re: [gdal-dev] get back a layer objet with ogr in python

2010-08-05 Thread Francis Markham
The driver and datasource are going out of scope. The former can be fixed by using ogr.Open instead of driver.Open The latter can be fixed by returning it from the function. A revised version of your code would look like: # import modules from osgeo import ogr def openShapeLine(shapefile): #

Re: [gdal-dev] python bindings: strange behavior with layer

2010-07-20 Thread Francis Markham
Is there an FAQ somewhere we can put this? It bit me when I was starting with GDAL and Python too. Cheers, Francis On 21 July 2010 04:00, Howard Butler wrote: > > On Jul 20, 2010, at 12:51 PM, Python Gis wrote: > >> Hi >> this is my code: >> >> from osgeo import ogr >> >> def OpenLayer(shape_p

[gdal-dev] LDID and .CPG in OGR shapefile driver

2010-07-13 Thread Francis Markham
ieving the encoding would need to be paired with this. Is this the appropriate place to have this discussion? I would be happy to provide a patch implementing this feature however it is deemed most appropriate. Kind Regards, Francis Markham __

Re: [gdal-dev] Re: C#: Retrieve boundary of coordinate system

2010-07-08 Thread Francis Markham
nto infinite loops or alike. > not to hard to step from (in WGS84) 180 to -180 and +85 to -85 and check for > every  fifth degree, or so, if the transformation is valid.  When > transformation not valid the plan is to switch to WGS84 which seems to work > even though results can be interestin

Re: [gdal-dev] Re: C#: Retrieve boundary of coordinate system

2010-07-07 Thread Francis Markham
I think the EPSG dictionary defines areas of validity for the defined coordinate systems. That could be a starting point, although there may be a better solution -Francis On 8 July 2010 16:01, Tomas R wrote: >  No one? > > Ok, I guess then that there are no common function/method of doing this.

[gdal-dev] Re: Writing non-ASCII characters to shapefile

2010-07-06 Thread Francis Markham
gt; Some time ago, there was a mail on this list about problems in case of >>> conflicting information in the .cpg file compared to the Language Driver >>> ID >>> (LDID) in the header of a dBASE file, see: >>> http://lists.osgeo.org/pipermail/gdal-dev/2010-May/0

Re: [gdal-dev] Re: Writing non-ASCII characters to shapefile

2010-07-06 Thread Francis Markham
al-dev/2010-May/024619.html > > Hermann > > On 06/07/2010 04:13, Francis Markham wrote: > > Okay, I will take that approach then. Thank you all for your help. > > What specific value should I write into the .cpg? The string '65001' > or the string 'utf-8&

Re: [gdal-dev] Re: Writing non-ASCII characters to shapefile

2010-07-05 Thread Francis Markham
; > Peter > > On Mon, 2010-07-05 at 19:18 +1000, Francis Markham wrote: >> At the bottom of this page, for one: >> http://resources.arcgis.com/content/kbase?fa=articleShow&d=21106 >> >> But honestly I've found hard to find  information about this.  I'd

[gdal-dev] Re: Writing non-ASCII characters to shapefile

2010-07-05 Thread Francis Markham
ote: > Francis, you wrote: > >> > I have heard that the use of UTF-8 in shapefiles is not portable. > > Where did you hear this? > > Regards, Hermann > > > On 03/07/2010 04:40, Francis Markham wrote: >> >> Hi there, >> >> I'm trying

[gdal-dev] Writing non-ASCII characters to shapefile

2010-07-02 Thread Francis Markham
g can store a shapefile's codepage. I don't know how to put these pieces together to create a portable solution, however. Apologies if this is a newbie question, but I can't find answers on the web. Thanks, Francis Markham ___ gdal-dev ma