<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Re: [Gdal-dev] Building multipolygons from single polygons with OGR?</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText65153 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Thanks Frank! That did the
trick!</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>-e</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> fwarmerdam@gmail.com on behalf of Frank
Warmerdam<BR><B>Sent:</B> Tue 12/13/2005 8:52 PM<BR><B>To:</B> Ethan
Alpert<BR><B>Cc:</B> gdal-dev@lists.maptools.org<BR><B>Subject:</B> Re:
[Gdal-dev] Building multipolygons from single polygons with
OGR?<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>On 12/13/05, Ethan Alpert <ealpert@digitalglobe.com>
wrote:<BR>> I have a query that returns single polygon geometries and I'd
like to loop<BR>> through the features and create a single multipolygon from
the result set.<BR>> How is this done with the OGR
API?<BR><BR>Ethan,<BR><BR>You could need to create a multipolygon object, and
then<BR>call addGeometry() for each polygon. You can pass in<BR>the
original polygons, as the method will clone them internally.<BR><BR>Best
regards,<BR>--<BR>---------------------------------------+--------------------------------------<BR>I
set the clouds in motion - turn up | Frank Warmerdam,
warmerdam@pobox.com<BR>light and sound - activate the windows | <A
href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</A><BR>and watch
the world go round - Rush | Geospatial Programmer for
Rent<BR></FONT></P></DIV>
</BODY>
</HTML>