[OSM-talk-fr] [SQL] Communes sans rue

Vincent Pottier vpottier at gmail.com
Jeu 12 Aou 13:39:49 UTC 2010


On 12/08/2010 15:10, Emilie Laffray wrote:
>
> J'aurais enfin du temps la semaine prochaine. Si tu as un dump de ta 
> base de données, Je regarderais.
>
Les données sont :
http://94.23.45.156/planet/FranceLarge/FranceLarge-latest.osm.bz2
(en l'occurrence, c'était le 100808 je crois)

Le style pour osm2pgsql est :
http://frvipofm.net/osm/import/france.style

La ligne de commande d'import est :
osm2pgsql -s -vl -U postgres -S 
/home/vincent/Documents/cartographie/Data/styles/france.style -d gis -C 
3000 /home/vincent/tmp/france.osm.bz2 --prefix france
>
> On 12 Aug 2010 13:16, "Vincent Pottier" <vpottier at gmail.com 
> <mailto:vpottier at gmail.com>> wrote:
> > On 12/08/2010 13:36, Thomas Walraet wrote:
> >> Le 12/08/2010 12:48 :
> >>>
> >>> J'en suis à 3149 communes sans rues sur une base France large.
> >>> Un petit tableau vite fait :
> >>> http://frvipofm.net/osm/import/CommunesSansRues.html
> >>
> >> Si j'ai bien tout compris le contenu de ta liste, pourquoi Trébeurden
> >> est dedans ?
> >>
> >> 22343
> >> http://www.openstreetmap.org/browse/relation/411310
> >> 
> http://www.openstreetmap.org/?lat=48.766996759365&lon=-3.59632330138393&zoom=14&layers=M 
> <http://www.openstreetmap.org/?lat=48.766996759365&lon=-3.59632330138393&zoom=14&layers=M> 
>
> >>
> > Bon. Un faux positif. Serait-ce à cause des exclaves sans voirie ?
> >
> > Si quelque spécialiste du postGis peut trouver ce qui ne va pas dans la
> > requête :
> > SELECT '<tr><td><a href="http://www.openstreetmap.org/browse/' ||
> > CASE WHEN c.osm_id < 0 THEN 'relation/'
> > ELSE 'way/'
> > END ||
> > ABS(c.osm_id) ||
> > '">' ||
> > CASE WHEN c.osm_id < 0 THEN 'r '
> > ELSE 'w '
> > END ||
> > ABS(c.osm_id) ||
> > '</a></td><td>' ||
> > c."ref:INSEE" ||
> > '</td><td>' ||
> > c.name <http://c.name> ||
> > '</td><td><a href="http://www.openstreetmap.org/?mlat=' ||
> > ST_Y(ST_Centroid(c.way)) ||
> > '&mlon=' ||
> > ST_X(ST_Centroid(c.way)) ||
> > '&zoom=14&layers=M">' ||
> > c.name <http://c.name> ||
> > '</a></td></tr>'
> >
> >
> > FROM france_polygon AS c
> > LEFT OUTER JOIN france_line AS r
> > ON ( r.highway='residential'
> > OR r.highway='unclassified'
> > OR r.highway='tertiary'
> > OR r.highway='secondary'
> > )
> > AND (
> > ST_Intersects(c.way, r.way)
> > OR ST_Contains(c.way, r.way)
> > )
> > WHERE c.admin_level='8'
> > AND r.osm_id IS NULL
> > ORDER BY c."ref:INSEE"
> >
> > --
> > FrViPofm
> >
> > _______________________________________________
> > Talk-fr mailing list
> > Talk-fr at openstreetmap.org <mailto:Talk-fr at openstreetmap.org>
> > http://lists.openstreetmap.org/listinfo/talk-fr
>
>
> _______________________________________________
> Talk-fr mailing list
> Talk-fr at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk-fr
>    

-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.openstreetmap.org/pipermail/talk-fr/attachments/20100812/a239fc54/attachment.htm>


Plus d'informations sur la liste de diffusion Talk-fr