[postgis-devel] OGC polygon constructors

Charlie Savage cfis at interserv.com
Fri Dec 9 09:46:19 PST 2005


I'd vote for wrapping polygonize_garray so that their is only one 
implementation of the code.

Charlie

strk at refractions.net wrote:
> On Fri, Dec 09, 2005 at 04:23:59PM +0100, strk at refractions.net wrote:
> ...
>   
>> Nonetheless, many items in the TODO list are completely missed:
>>     
> ...
>   
>> - OGC polygon constructors
>>     
>
> I'm approaching this. SFSQL 1.1 contains the following information
> about these:
>
>   
>>  As an optional feature, an implementation may also support `building' of
>>  Polygon or MultiPolygon values given an arbitrary collection of possibly
>>  intersecting rings or closed LineString values.  Implementations that
>>  support this feature should include the following functions:
>>
>>  BdPolyFromText(multiLineStringTaggedText String, SRID Integer): Polygon
>>
>>    Construct a Polygon given an arbitrary
>>    collection of closed linestrings as a
>>    MultiLineString text representation.
>>
>>  BdMPolyFromText(multiLineStringTaggedText String, SRID Integer): MultiPolygon
>>
>>    Construct a MultiPolygon given an
>>    arbitrary collection of closed linestrings as a
>>    MultiLineString text representation.
>>     
>
> Given these specs I think we can avoid use of GEOS for the construction,
> as the only required thing is to find out what is an hole and
> what is a shell. C code for this is already present in the loader.
>
> The alternative would be using just a comple of wrappers
> to the polygonize_garray() function.
>
> Thoughts ?
>
> --strk;
>
>  /"\    ASCII Ribbon Campaign
>  \ /    Respect for low technology.
>   X     Keep e-mail messages readable by any computer system.
>  / \    Keep it ASCII. 
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20051209/d13f7102/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2781 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20051209/d13f7102/attachment.bin>


More information about the postgis-devel mailing list