<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hey,<br></div><div class="gmail_default" style="font-family:monospace,monospace">answered a few weeks ago :<br><a href="http://comments.gmane.org/gmane.comp.gis.postgis/38249">http://comments.gmane.org/gmane.comp.gis.postgis/38249</a><br></div><div class="gmail_default" style="font-family:monospace,monospace">Cheers<br></div><div class="gmail_default" style="font-family:monospace,monospace">Rémi-C<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-30 18:30 GMT+02:00 Basques, Bob (CI-StPaul) <span dir="ltr"><<a href="mailto:bob.basques@ci.stpaul.mn.us" target="_blank">bob.basques@ci.stpaul.mn.us</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
I’ve done this with a SQL statement in the past. (it’s been a few years now.)
<div><br>
</div>
<div>It was dependent on the lines actually intersecting each other (diagrammatic lifework) vs physical representations. We had to manually end the line work at the intersections, and in some instances divide lines that need a break at the intersections.</div>
<div><br>
</div>
<div>You can still do the intersection extract without all this work by using a gap tolerance in the search, but this may lead to more errors depending on number of short street segments, etc in the dataset.</div>
<div><br>
</div>
<div>Another way to approach this is by matching up street attributes like names. You can then derive a street intersection name index for zooming-to in a map. you’ll also likely need to use a self join of some type.</div>
<div><br>
</div>
<div>Lastly, you can use a straight tabular method, that uses a cartiesian coordinate equation and check every line segment again every other (Hint: a^2 + b^2 = c^2) You don’t even need POSTGIS for this is you have the end points of each line segment
as coordinates. In most cases this type of search is very fast.</div>
<div><br>
</div>
<div>I would look at the ST_INTERSECTS and possibly ST_CROSSES functions to start with, but they don’t actually give up a point.</div>
<div><br>
</div>
<div>Also, this may help get you started . . .</div>
<div><br>
</div>
<div><a href="http://gis.stackexchange.com/questions/20835/identifying-road-intersections-using-postgis" target="_blank">http://gis.stackexchange.com/questions/20835/identifying-road-intersections-using-postgis</a></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>bobb</div>
<div><br>
</div>
<div><br>
<div>
<blockquote type="cite"><div><div class="h5">
<div>On Jul 30, 2015, at 11:06 AM, Eduardo Bieñkowski <<a href="mailto:edukoski@gmail.com" target="_blank">edukoski@gmail.com</a>> wrote:</div>
<br>
</div></div><div><div><div class="h5">
<div dir="ltr"><span lang="en"><span><span lang="en"><span>I have</span>
<span>one and only one</span> <span>layer</span> <span>
lines</span> <span>(</span><span>they</span> <span>
are</span> <span>city streets</span><span>)</span></span></span><br>
<span>How</span> <span>I can</span> <span>get</span>
<span>a point layer</span> <span>where</span> <span>
the</span> <span>lines cross</span><span>?</span> <span>
and so have</span> <span>a layer of</span> <span>crosspoints</span><br>
<br>
<span>Apologize</span> <span>for my</span> <span>
English</span></span><br clear="all">
<br>
-- <br>
<div>Eduardo</div>
</div></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>