[OSM-talk-fr] Extraire les données de batiments de openstreetmap
Etienne Trimaille
etienne.trimaille at gmail.com
Ven 16 Mar 19:59:36 UTC 2012
Tu veux obtenir le bati dans un nouveau fichier, c'est bien çà ?
osmosis --read-xml input.osm --tf accept-ways building=* --used-node
--write-xml output.osm
La syntaxe n'était pas bonne dans ta commande ;-)
Voir l'exemple en dessous :
http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#--tag-filter_.28--tf.29
Le 16 mars 2012 20:39, amigoface <amigoface at gmail.com> a écrit :
> un truc m'échappe là !
>
> j'ai des erreurs quand j'éxécute la commande d'éxtraction, en s'inspirant
> de
> l'example de nicolas j'ai éssayé ceci :
>
> amigoface wrote
> >
> > osmosis --read-xml file="oran.osm" --tag-filter building=* --write-xml
> > file="buildings.osm"
> >
> aussi j'ai essayé building=yes ...
>
> j'ai ce message d'erreur
>
> amigoface wrote
> >
> >
> > C:\Users\issam\Desktop\11032012\osmosis-latest\osmosis-0.40.1\bin>osmosis
> > --read
> > -xml file="oran.osm" --tag-filter building=* --write-xml
> > file="buildings.osm"
> > 16 mars 2012 19:41:03 org.openstreetmap.osmosis.core.Osmosis run
> > INFO: Osmosis Version 0.40.1
> > 16 mars 2012 19:41:04 org.openstreetmap.osmosis.core.Osmosis run
> > INFO: Preparing pipeline.
> > 16 mars 2012 19:41:04 org.openstreetmap.osmosis.core.Osmosis main
> > GRAVE: Execution aborted.
> > org.openstreetmap.osmosis.core.OsmosisRuntimeException: The TagFilter
> > task's def
> > ault parameter must consist of an action and an entity type separated by
> > '-'.
> > at
> org.openstreetmap.osmosis.tagfilter.v0_6.TagFilter.(TagFilter.j
> > ava:50)
> > at
> > org.openstreetmap.osmosis.tagfilter.v0_6.TagFilterFactory.createTaskM
> > anagerImpl(TagFilterFactory.java:76)
> > at
> > org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory.cre
> > ateTaskManager(TaskManagerFactory.java:60)
> > at
> > org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pi
> > peline.java:50)
> > at
> > org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipel
> > ine.java:112)
> > at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86)
> > at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Laun
> > cher.java:329)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
> > a:239)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
> > uncher.java:409)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> > 352)
> > at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
> >
> > C:\Users\issam\Desktop\11032012\osmosis-latest\osmosis-0.40.1\bin>
> >
>
> j'ai éssayé de voir la doc de osmosis pour voir comment utiliser le tag
> building dans l'extraction , j'ai pas réussi a le trouver, ou bien je dois
> être super fatigué pour ne pas le voir ;)
>
> a noter que j'ai réccupéré le fichier d'entrée sur le site officiel
> d'openstreetmap en spécifiant la région qui m'intéresse puis exporter vers
> le fichier OSM
>
> si quelqu'un sait comment utiliser la ligne de commande simple pour
> extraire
> les batiments d'un fichier OSM ben merci de partager
>
> bonne nuit a tous !
>
>
> --
> View this message in context:
> http://gis.19327.n5.nabble.com/Extraire-les-donnees-de-batiments-de-openstreetmap-tp5557667p5572321.html
> Sent from the France mailing list archive at Nabble.com.
>
> _______________________________________________
> 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/20120316/3858cc6b/attachment.htm>
Plus d'informations sur la liste de diffusion Talk-fr