I believe I have correctly installed osmosis, but I don't think it is in my
path environment variable. How can I fix this?

When I run the OSM demo in R, this is the error that I get:

> download.file("http://osmar.r-forge.r-project.org/muenchen.osm.gz";,
+               "muenchen.osm.gz")
trying URL 'http://osmar.r-forge.r-project.org/muenchen.osm.gz'
Content type 'application/x-gzip' length 11736841 bytes (11.2 MB)
downloaded 11.2 MB


> system("gzip -d muenchen.osm.gz")

> ### Import subset based on bounding box: #############################
>
> src <- osmsource_osmosis(file = "muenchen.osm",
+                          osmosis = "osmosis")

> muc_bbox <- center_bbox(11.575278, 48.137222, 3000, 3000)

> muc <- get_osm(muc_bbox, src)
Error in file(con, "r") : cannot open the connection
In addition: Warning messages:
1: running command 'gzip -d muenchen.osm.gz' had status 127
2: running command 'osmosis --read-xml enableDateParsing=no
file=muenchen.osm --bounding-box top=48.1507120588903 left=11.5551240885889
bottom=48.1237319411097 right=11.5954319114111 --write-xml
file=C:\Users\2015\AppData\Local\Temp\RtmpaUBgyv\file1ec03998697e' had
status 127
3: In file(con, "r") :
  cannot open file
'C:\Users\2015\AppData\Local\Temp\RtmpaUBgyv\file1ec03998697e': No such
file or directory
>
_______________________________________________
osmosis-dev mailing list
osmosis-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osmosis-dev

Reply via email to