Code Monkey home page Code Monkey logo

osmcode.github.io's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

osmcode.github.io's Issues

Way-Handler-Example with WayNodes

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?

Make docs pages a bit easier to find.

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

Update section 5 of the libosmium manual

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

Possible Typo for tags-filter example

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?

sort not working

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.