[gdal-dev] Cost-efficient way to check if geometry is valid

2010-03-26 Thread danotchki
Good afternoon (at least where I am), I was wondering if there was a cost-efficient way to find out if a topology is valid or not. By valid, I basically mean it will not raise a TopologyException. I am a geo-noob, sorry if this sounds obvious. Many thanks, Daniel

Re: [gdal-dev] Adding multipolygons to an existing geometry collection

2010-03-25 Thread danotchki
e shp? Thanks again for your help. I'm a big fan of the OGR tools. Best, Daniel On Wed, Mar 24, 2010 at 8:07 PM, Frank Warmerdam wrote: > danotchki wrote: > >> Hello List, >> >> I hope you will be able to help me. I'm stuck on a problem. >> I'm tryi

[gdal-dev] Adding multipolygons to an existing geometry collection

2010-03-24 Thread danotchki
Hello List, I hope you will be able to help me. I'm stuck on a problem. I'm trying to reconstruct within my Python script polygons from a shapefile that belong together. So I naturally perfomed: geom_tmp = ogr.CreateGeometryFromWkb(ftr.GetGeometryRef().ExportToWkb()) geom.AddGeometryDirectly(geo