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

Frank Warmerdam warmerdam at pobox.com
Thu Mar 25 09:44:57 EDT 2010


danotchki wrote:
> That would be awesome, Frank. forceToMultiPolygon was exactly the 
> function I was looking for (and wondering why it wasn' there).

Daniel,

OK, I implemented it yesterday.  You can see it in use in Python in:

   http://svn.osgeo.org/gdal/trunk/autotest/ogr/ogr_factory.py

> Just pushing my luck: would there be another way to force the type of 
> Geometry returned by GetFeatureRef or when getting the layer from the 
> data source opening the shp?

This is not normally possible.

> Thanks again for your help. I'm a big fan of the OGR tools.

Thanks!

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list