[postgis-users] POLYGON from LINESTRING

Paul Ramsey pramsey at refractions.net
Wed Apr 24 15:46:04 PDT 2002


Hm.
No there is not a simple way. Type casting is not specified in SFSQL. I
guess it behooves me to ask why you are loading your polygons as
linestrings?
(The non simple way is to extract them, re-write their types as POLYGON
and re-insert them.)
P.

Bernhard Reiter wrote:
> 
> Is there a simple way to create a POLYGON from
> a LINESTRING which tests positive to IsClosed()?
> 
> Same for MULTIPOLYGON from MULTILINESTRING?
> 
> I haven't found a obvious and simple method.
> What am I missing?
> 
> advTHANKSance
>         Bernhard
> 
>   ------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature

-- 
      __
     /
     | Paul Ramsey
     | Refractions Research
     | Email: pramsey at refractions.net
     | Phone: (250) 885-0632
     \_




More information about the postgis-users mailing list