<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Le 14/05/2010 01:06, Pieren a écrit :
<blockquote
cite="mid:AANLkTinGgCRN2dosI_BPBFVey8nrdkAUVqoRu7fAEU5e@mail.gmail.com"
type="cite">
<div class="gmail_quote">2010/5/13 Vincent Pottier <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:vpottier@gmail.com">vpottier@gmail.com</a>></span><br>
<div><br>
Je pense qu'il suffit d'ajouter une ligne dans le genre:<br>
node,way description text polygon<br>
</div>
</div>
</blockquote>
En effet, la colonne 'description' est ajoutée. Mais j'ai mis <br>
node,way description text linear <br>
pour l'import de repères géodésiques.<br>
<br>
Merci à Vincent, Émilie, Pieren. J'ai une base spacialisée qui tourne !
Et je commence à faire tourner des requêtes (il y a un an, ça
m'impressionnait) :<br>
<br>
SELECT id, lat, lon FROM geodesy_nodes<br>
WHERE id in (<br>
select DISTINCT ON (way) osm_id FROM geodesy_point<br>
WHERE description ILIKE '%clocher%'<br>
or description ILIKE '%croix%' <br>
or description ILIKE '%église%' <br>
or description ILIKE '%château%'<br>
except<br>
select p.osm_id<br>
from<br>
(select * from geodesy_point) p,<br>
(select * from planet_osm_polygon where building is not null) c<br>
where p.way && c.way and st_intersects(p.way,c.way) is true<br>
)<br>
<br>
Il y a à peu près 40 000 repères (ou groupes de repères à la verticale)
qui attendent un bâtiment dessous (église, château d'eau) !<br>
Ce qui m'étonne, c'est la forme de lat et lon :<br>
670596584;5333352.79653301;693719.667266716<br>
--<br>
FrViPofm<br>
</body>
</html>