<html>
<head>
        <title></title>
        
<meta name="GENERATOR" content="MSHTML 8.00.6001.18852"></meta>
        
<meta name="SKYPE_FRAMEID" content="HBROAMAKDT"></meta>
        
<meta id="skype_v3_tb_marker_id" name="SKYPE_PARSING_HAS_FINISHED" content="metacontent"></meta>
</head>

<body>OK
        
<div align="left"> </div>
        
<div align="left">But what to send as empty when LWLINE or LWPOINT is wanted, not LWCOLLECTION.</div>
        
<div align="left">internally I mean. </div>
        
<div align="left">/Nicklas<br />
                <br />
                2009-11-22 Paul Ramsey wrote:<br />
                <br />
                No, bad idea. Empty geometries have a type. There's 'POLYGON EMPTY',<br />
                >'LINESTRING EMPTY', etc, etc, etc.<br />
                ><br />
                >P.<br />
                ><br />
                >On Sat, Nov 21, 2009 at 2:04 PM, Nicklas Avén<br />
                >
                <nicklas.aven@jordogskog.no></nicklas.aven@jordogskog.no> wrote:<br />
                >> is type 0 for LWGEOM occupied by anything or could it be an idea to use it<br />
                >> for empty geometries.<br />
                >> Then it would be easy to create any emtpy geometry. Like a generic empty<br />
                >> geometry.<br />
                >><br />
                >> Or is there another way that I have missed.<br />
                >><br />
                >> When I have identified the empty geometries, in shortestline and it buddies<br />
                >> I need to communicate that an empty geometry should be returned and the<br />
                >> datatype is LWLINE and LWPOINT for st_closestpoint. I'm tempted to just make<br />
                >> an LWGEOM with type 0. Is it a bad idea.<br />
                >><br />
                >> #define EMPTY 0<br />
                >> #define POINTTYPE 1<br />
                >> #define LINETYPE 2<br />
                >> #define POLYGONTYPE 3<br />
                >> and so on<br />
                >><br />
                >> /Nicklas<br />
                >> _______________________________________________<br />
                >> postgis-devel mailing list<br />
                >> postgis-devel@postgis.refractions.net<br />
                >> http://postgis.refractions.net/mailman/listinfo/postgis-devel<br />
                >><br />
                >><br />
                >_______________________________________________<br />
                >postgis-devel mailing list<br />
                >postgis-devel@postgis.refractions.net<br />
                >http://postgis.refractions.net/mailman/listinfo/postgis-devel<br />
                ><br />
                ></div>
</body>
</html>