Hi All,<br>Thanks Mike.<br>I have just loaded triangles as POLYGON with 3D (x,y,z) co-ordinates into postgres. And I want to know which triangles intersect with a 2D box or envelope.<br><span style="font-size:11px;font-family:'Courier New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline" id="internal-source-marker_0.5345255745907577">which I do something like the following:<br>
<br>ST_INTERSECTS( a.geomtext, ST_MakeEnvelope( 585570 ,5205600, 585570, 5205630 ))</span><br><br><span style="font-size:11px;font-family:'Courier New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline" id="internal-source-marker_0.5345255745907577">5 | POLYGON Z ((585570 5205570 634,585570 5205600 661,585549.994940603 5205588.81757012 560.308887892328,585570 5205570 634))</span><br>
<span style="font-size:11px;font-family:'Courier New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> 6 | POLYGON Z ((585570 5205600 661,585600 5205570 644,585600 5205600 670,585570 5205600 661))</span><br>
<span style="font-size:11px;font-family:'Courier New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> 7 | POLYGON Z ((585600 5205570 644,585570 5205600 661,585570 5205570 634,585600 5205570 644))</span><br>
<br>The rows I get returned back, I am just wondering if its ok to intersect 3D triangles (polygons) with a 2D box? Will this give me the correct results? <br>I just want to know all the triangles that are covered fully or partially by that 2D region.<br>
<br>Thanks,<br>Ed<br><br><br><br><div class="gmail_quote">On Wed, Oct 10, 2012 at 9:23 AM, Mike Toews <span dir="ltr"><<a href="mailto:mwtoews@gmail.com" target="_blank">mwtoews@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>From the pastebin text: NAD27 UTM Zone 10N<br>
<a href="http://spatialreference.org/ref/epsg/26710/" target="_blank">http://spatialreference.org/ref/epsg/26710/</a><br>
SRID=26710<br>
Try it!<br>
<br>
-Mike<br>
<div><div class="h5"><br>
On 10 October 2012 20:18, Ed Linde <<a href="mailto:edolinde@gmail.com">edolinde@gmail.com</a>> wrote:<br>
> Hi All,<br>
> I have this file I downloaded from geocomm and I am trying to figure out<br>
> what the SRID for it in postgis would be. Have no idea.<br>
> Can someone please help?<br>
> Some sample x,y,z values in the file are<br>
><br>
> 590283.357 5219156.537 658.84<br>
> 590283.357 5219146.537 656.303<br>
> 590283.357 5219136.537 660.872<br>
> 590283.357 5219126.537 666.917<br>
> 590283.357 5219116.537 671.999<br>
><br>
><br>
> The .txt file with spatial information --> <a href="http://pastebin.com/1H0zVYTQ" target="_blank">http://pastebin.com/1H0zVYTQ</a><br>
><br>
> I tried looking at <a href="http://spatialreference.org/" target="_blank">http://spatialreference.org/</a>. But could not figure out<br>
> which one I should be using in Postgis.<br>
> I basically want to transform that co-ordinate system into something more<br>
> manageable where say each<br>
> x,y,z value lies in the range of [0,1000] or something like that. Would be<br>
> nice to hear some suggestions.<br>
><br>
> Cheers,<br>
> Ed<br>
><br>
</div></div>> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br>