<br><font size=2 face="sans-serif">That's a lot of affirmatives Paul -
Now I remember why I'm so pumped about PostGIS!</font>
<br>
<br><font size=2><tt>postgis-users-bounces@postgis.refractions.net wrote
on 02/19/2004 07:15:48 AM:<br>
<br>
> <br>
> On Thursday, February 19, 2004, at 02:03 AM, Chris Haste wrote:<br>
> <br>
> > Given an irregular closed polygon can we perform SQL statements
along <br>
> > the lines of "give me all the points that reside within
the polygon?<br>
> <br>
> SELECT POINTS FROM MYTABLE WHERE <br>
> CONTAINS(GEOMETRYFROMTEXT('POLYGON(..)', SRID), POINTS)<br>
> <br>
> <br>
> >  Given the same polygon can we obtain all the lines that
intersect the <br>
> > polygon?<br>
> <br>
> SELECT LINES FROM MYTABLE WHERE NOT <br>
> DISJOINT(GEOMETRYFROMTEXT('POLYGON(..)', SRID), LINES)<br>
> <br>
> <br>
> >  For the above are the coordinates of the intersection points
<br>
> > calculated and obtainable?<br>
> <br>
> SELECT INTERSECTION(LINES, GEOMETRYFROMTEXT('POLYGON(..)',SRID)) FROM
<br>
> MYTABLE WHERE NOT DISJOINT(GEOMETRYFROMTEXT('POLYGON(..)', SRID),
LINES)<br>
> <br>
> <br>
> >  Can we obtain all the points within a certain radius of
a specified <br>
> > points?<br>
> <br>
> SELECT * FROM MYTABLE WHERE <br>
> DISTANCE(POINTS,GEOMETRYFROMTEXT('POINT(..)',SRID)) > RADIUS<br>
> <br>
> > Can we obtain all the lines that reside entirely (without intersecting
<br>
> > the boundary) within a circle or an ellipse?<br>
> <br>
> If you construct the circle or ellipse into a polygon that approximates
<br>
> the shape, you can use the WITHIN() or CONTAINS() functions for a
<br>
> strict test of containment.<br>
> <br>
> > Is it possible to specify the segments of a polygon as being
either a <br>
> > straight line, a rhumb line or a great circle? This is necessary
to <br>
> > avoid problems to do with the curvature of the earth.<br>
> <br>
> No. You can calculate length_spheroid() directly on the spheroid,
but <br>
> that is the only geodetic function we have so far.<br>
> <br>
> >  <br>
>       Paul Ramsey<br>
>       Refractions Research<br>
>       Email: pramsey@refractions.net<br>
>       Phone: (250) 885-0632<br>
> <br>
> _______________________________________________<br>
> postgis-users mailing list<br>
> postgis-users@postgis.refractions.net<br>
> http://postgis.refractions.net/mailman/listinfo/postgis-users<br>
</tt></font>