osmcode / osmcode.github.io Goto Github PK
View Code? Open in Web Editor NEWosmcode.org website
Home Page: https://osmcode.org/
osmcode.org website
Home Page: https://osmcode.org/
https://github.com/osmcode/osmcode.github.io/blob/master/_opl_file_format/01_introduction.md contains the statement "Osmium can read and write OPL files." but what would be really useful is if that statement hyperlinked to an example that demonstrated that. The "5. Usage Examples" below are just examples demonstrating e.g. grep and sed; they provide no information about actually creating files in this format.
Hi,
first of all, thank you for you allrounder-library!
My issue is, that the example in your manual about getting a way with its waynodes (http://osmcode.org/libosmium/manual.html#handlers) is not working, for there comes an invalid_location exception.
Even if I surround it with an try/catch-block:
class WayNodeHandler : public osmium::handler::Handler {
public:
void way(const osmium::Way& way) {
for (const auto& n : way.nodes()) {
try {
cout << "works" << n.ref() << ": " << n.lon() << ", " << n.lat() << '\n';
} catch (const exception& e) {
cout << "Nope: " << e.what() << endl;
}
}
}
};
->
libc++abi.dylib: terminating with uncaught exception of type osmium::invalid_location: invalid location
Abort trap: 6
Am I doing something wrong?
When using the osmium tool's help
command on a docker container, I had trouble finding docs. This was a linux container on AWS ECS, but for some reason man
wasn't installed, so instead of getting the manpage, I got the fallback message:
# osmium help export
osmium export: Export OSM data
You'll find more documentation at http://osmcode.org/osmium-tool/
I missed the links to the manpages on http://osmcode.org/osmium-tool/ because I'm lazy and didn't read closely. The links looked like they'd take me to tarballs of releases. Not sure that's really worth addressing, but take it for what it's worth.
However, it might be more helpful to get a link to the relevant manpage itself, maybe constructing the string using the name of the command and get_osmium_version.
You'll find more documentation at http://docs.osmcode.org/osmium/v1.7.1/osmium-export.html
Man pages for all commands are available at http://docs.osmcode.org/osmium/v1.7.1/
General documentation at http://osmcode.org/osmium-tool/
/cc @springmeyer @joto
Hi,
I read http://osmcode.org/libosmium/manual.html#using-libosmium-in-your-own-projects and found 2 wrong URLs:
It occurs in the file https://github.com/osmcode/osmcode.github.io/blob/master/_libosmium_manual/05_using.md
Are these URLs available elsewhere? Thank you.
Cheers,
Damien
https://osmcode.org/osmium-tool/manual.html does not mention merge
command, which leads people to ask it here for example : https://gis.stackexchange.com/questions/242704/merging-osm-pbf-files
Hi Joto,
Can you please check the instructions added to the latest version of the
Matches objects of any type with the key “note”.
w/highway=primary
Matches all ways with the key “highway” and value “primary”.
w/highway!=primary
Adding to it, when I am following this example for multiple tag filters to get the data, it is filtering out most all the listed tag added as value.
w/highway=motorway,trunk,primary
The output was all highway except motorway,trunk,primary.
So, what would be the condition (=
or !=
) if I want to extract highways tagged in OpenStreetMap with motorway, trunk, and primary
from a country .osm.pbf file?
https://osmcode.org/libosmium/manual.html#basic-types
The part where it says "osmium::Location location{9300000000, 49700000000};" seems to be a error, it is over the 32bit integer limit.
Maybe it should be "{93000000, 497000000}" ?
Hi,
I'm using osmium 1.5.1-1 (ubuntu 17.04), and when trying to sort I get an error message:
% osmosis sort -o Berlin_sort.pbf Berlin.pbf
Jun 07, 2017 1:10:30 PM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Expected argument 1 to be an option or task name.
at org.openstreetmap.osmosis.core.cli.CommandLineParser.parse(CommandLineParser.java:79)
at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:74)
at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:328)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.