<div dir="ltr">Köszi!!</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-05 0:01 GMT+02:00 Imre Samu <span dir="ltr"><<a href="mailto:pella.samu@gmail.com" target="_blank">pella.samu@gmail.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>néhány sor magyarázatnak:</div><div><br></div>A "<span style="font-family:arial,sans-serif;font-size:13px">planet_osm_polygon " -ból szoktam én lekérdezni a   település admin poligonját</span><br>



<div><div>vagyis:</div><div><br></div><div>select * FROM "public"."planet_osm_polygon" WHERE name='Kisbodak' and admin_level='8' </div><div>---   osm_id= -1491443 </div></div><div><br>


</div>
<div>Az <span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="font-family:arial,sans-serif;font-size:13px">ST_Intersects  fügvénnyel az   átfedést lehet meghatározni.  </span></div><div><span style="font-family:arial,sans-serif;font-size:13px"> ( </span><font face="arial, sans-serif"><a href="http://www.bostongis.com/postgis_intersection_intersects.snippet" target="_blank">http://www.bostongis.com/postgis_intersection_intersects.snippet</a> )</font></div>



<div><font face="arial, sans-serif"><br>az </font></div><div><span style="font-family:arial,sans-serif;font-size:13px">ST_Length( ST_Intersection(hol.way, mit.way) ) > 1     :  azt jelenti, hogy az átfedés minimum 1 méter legyen !!! </span></div>



<div><span style="font-family:arial,sans-serif;font-size:13px"> ( mert előfordul, hogy csak érinti , és az ne számolódjék bele )</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div>



<div><span style="font-family:arial,sans-serif;font-size:13px">highway<>''       - a higway cimke meg van adva , vagyis csak az utak érdekelnek bennünket.</span></div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">remélem valamit segit ..</span></div>



<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">  </span><span style="font-family:arial,sans-serif;font-size:13px"><br>



</span></div><div><font face="arial, sans-serif"> és természetesen ezt lehet cifrázni ..  </font></div><div><font face="arial, sans-serif">az én választási utcanév ellenkörzésemnél nemcsak a higway-t nézem, hanem a place és más címkéket is ..</font></div>



<div><font face="arial, sans-serif"><br></font></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">"</span></div><h3 style="color:rgb(0,0,0);margin:0px 0px 0.3em;overflow:hidden;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none;font-size:16.799999237060547px;font-family:sans-serif;line-height:19.200000762939453px;background-image:none;background-repeat:initial">



<span>Leválogatás köre az OpenStreetMap-ből</span><span style="font-size:small;font-weight:normal;margin-left:1em;vertical-align:baseline;line-height:1em;display:inline-block"><span>[</span><a href="http://wiki.openstreetmap.org/w/index.php?title=WikiProject_Hungary/Utcan%C3%A9v_teljess%C3%A9g&action=edit&section=6" title="Edit section: Leválogatás köre az OpenStreetMap-ből" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">edit</a><span>]</span></span></h3>



<ul style="line-height:19.200000762939453px;margin:0.3em 0px 0px 1.6em;padding:0px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.800000190734863px"><li style="margin-bottom:0.1em">a párosítás a <tt dir="ltr" style="font-family:monospace,Courier;font-size:14.399999618530273px;white-space:pre-wrap;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:name" title="Key:name" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">name</a>=</tt> tag mellett az <tt dir="ltr" style="font-family:monospace,Courier;font-size:14.399999618530273px;white-space:pre-wrap;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:alt_name" title="Key:alt name" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">alt_name</a>=</tt> -re is megtörténik</li>



</ul><ul style="line-height:19.200000762939453px;margin:0.3em 0px 0px 1.6em;padding:0px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.800000190734863px"><li style="margin-bottom:0.1em">rengeteg új tag is bekerült a leválogatásba</li>



</ul><pre style="font-family:monospace,Courier;padding:1em;border:1px solid rgb(221,221,221);color:rgb(0,0,0);line-height:1.3em;font-size:1.2em;background-color:rgb(249,249,249)"> <tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:leisure" title="Key:leisure" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">leisure</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:leisure%3Dpark" title="Tag:leisure=park" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">park</a></tt>
 <tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:highway" title="Key:highway" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">highway</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:highway%3Dpedestrian" title="Tag:highway=pedestrian" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">pedestrian</a></tt>,<tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:highway" title="Key:highway" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">highway</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:highway%3Dfootway" title="Tag:highway=footway" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">footway</a></tt>,<tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:highway" title="Key:highway" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">highway</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:highway%3Dresidential" title="Tag:highway=residential" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">residential</a></tt>
 <tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:place" title="Key:place" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">place</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:place%3Dhamlet" title="Tag:place=hamlet" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">hamlet</a></tt>,<tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:place" title="Key:place" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">place</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:place%3Dfarm" title="Tag:place=farm" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">farm</a></tt>,<tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:place" title="Key:place" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">place</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:place%3Dlocality" title="Tag:place=locality" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">locality</a></tt>,<tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:place" title="Key:place" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">place</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:place%3Dallotments" title="Tag:place=allotments" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">allotments</a></tt>,<tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:place" title="Key:place" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">place</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:place%3Disolated_dwelling" title="Tag:place=isolated dwelling" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">isolated_dwelling</a></tt>
 <tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:building" title="Key:building" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">building</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:building%3Dtrain_station" title="Tag:building=train station" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">train_station</a></tt>
 <tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:railway" title="Key:railway" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">railway</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:railway%3Dstation" title="Tag:railway=station" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">station</a></tt>,<tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><a href="http://wiki.openstreetmap.org/wiki/Key:railway" title="Key:railway" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">railway</a>=<a href="http://wiki.openstreetmap.org/wiki/Tag:railway%3Dhalt" title="Tag:railway=halt" style="text-decoration:none;color:rgb(11,0,128);background:none" target="_blank">halt</a>"</tt></pre>



<pre style="font-family:monospace,Courier;padding:1em;border:1px solid rgb(221,221,221);color:rgb(0,0,0);line-height:1.3em;font-size:1.2em;background-color:rgb(249,249,249)"><tt dir="ltr" style="font-family:monospace,Courier;font-size:17.600000381469727px;background-color:rgb(221,221,238)"><br>



</tt></pre><div><font face="arial, sans-serif"> <a href="http://wiki.openstreetmap.org/wiki/WikiProject_Hungary/Utcan%C3%A9v_teljess%C3%A9g" target="_blank">http://wiki.openstreetmap.org/wiki/WikiProject_Hungary/Utcan%C3%A9v_teljess%C3%A9g</a></font><br>



<font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014. június 4. 23:28 Viktor Dénes írta, <span dir="ltr"><<a href="mailto:denesviktor@gmail.com" target="_blank">denesviktor@gmail.com</a>></span>:<div>

<div class="h5"><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Köszi.<div>nem mondom, hogy értem, de majd lassan  remélem ... :)</div></div><div class="gmail_extra"><br>



<br><div class="gmail_quote">2014-06-04 12:00 GMT+02:00 Dömcsi <span dir="ltr"><<a href="mailto:kititomi@gmail.com" target="_blank">kititomi@gmail.com</a>></span>:<div><div><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br><br>On Wednesday, June 4, 2014 10:45:49 AM UTC+2, dv wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">





<div dir="ltr">Helló!<div><br></div><div>Dömcsi oldalán láttam az utcanév lekérdező felületet.</div><div>Csak gyors kérdés, hogy itt mi a hiba?</div><div><br></div><div>select name from planet_osm_line where highway is not null and way && (SELECT st_astext(st_union(way)) FROM "public"."planet_osm_line" WHERE name='Kisbodak' and admin_level='8') order by name<br>







</div><div><br></div><div>Kisbodak utcáit akarom lekérdezni, de a mellette lévő település utcáit is lekérdezi a kis SQL-m.</div><div><br></div><div>Viktor </div></div></blockquote></div></div><div><br><br>Valahogy így:<br>





select <a href="http://mit.name" target="_blank">mit.name</a> from planet_osm_line mit, planet_osm_polygon hol where ST_Intersects(hol.way, mit.way) and ST_Length( ST_Intersection(hol.way, mit.way) ) > 1 and mit.highway<>'' and <a href="http://hol.name" target="_blank">hol.name</a> = 'Bodajk' group by <a href="http://mit.name" target="_blank">mit.name</a> order by <a href="http://mit.name" target="_blank">mit.name</a> asc;<span><font color="#888888"><br>





<br><br><br> </font></span></div></div><span><font color="#888888">

<p></p>

-- <br>
Magyar OSM Levelezőlista - <a href="mailto:openstreetmap-hungary@googlegroups.com" target="_blank">openstreetmap-hungary@googlegroups.com</a><br>
leiratkozás: <a href="mailto:openstreetmap-hungary%2Bunsubscribe@googlegroups.com" target="_blank">openstreetmap-hungary+unsubscribe@googlegroups.com</a><br>
--- <br>
Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok „openstreetmap-hungary” csoportjára.<br>
Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy e-amailt a(z) <a href="mailto:openstreetmap-hungary+unsubscribe@googlegroups.com" target="_blank">openstreetmap-hungary+unsubscribe@googlegroups.com</a> címre.<br>






További lehetőségekért látogasson el ide: <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</font></span></blockquote></div></div></div><br></div><div><div>

<p></p>

-- <br>
Magyar OSM Levelezőlista - <a href="mailto:openstreetmap-hungary@googlegroups.com" target="_blank">openstreetmap-hungary@googlegroups.com</a><br>
leiratkozás: <a href="mailto:openstreetmap-hungary%2Bunsubscribe@googlegroups.com" target="_blank">openstreetmap-hungary+unsubscribe@googlegroups.com</a><br>
--- <br>
Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok „openstreetmap-hungary” csoportjára.<br>
Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy e-amailt a(z) <a href="mailto:openstreetmap-hungary+unsubscribe@googlegroups.com" target="_blank">openstreetmap-hungary+unsubscribe@googlegroups.com</a> címre.<br>




További lehetőségekért látogasson el ide: <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</div></div></blockquote></div></div></div><br></div><div class="HOEnZb"><div class="h5">

<p></p>

-- <br>
Magyar OSM Levelezőlista - <a href="mailto:openstreetmap-hungary@googlegroups.com" target="_blank">openstreetmap-hungary@googlegroups.com</a><br>
leiratkozás: <a href="mailto:openstreetmap-hungary%2Bunsubscribe@googlegroups.com" target="_blank">openstreetmap-hungary+unsubscribe@googlegroups.com</a><br>
--- <br>
Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok „openstreetmap-hungary” csoportjára.<br>
Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy e-amailt a(z) <a href="mailto:openstreetmap-hungary+unsubscribe@googlegroups.com" target="_blank">openstreetmap-hungary+unsubscribe@googlegroups.com</a> címre.<br>


További lehetőségekért látogasson el ide: <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</div></div></blockquote></div><br></div>