Giter Club home page Giter Club logo

idp's People

Contributors

pietervdvn avatar xivk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

idp's Issues

Error generating routerdb

Hello

I am trying to generate the routerdb from Portugal and I am having the following error

Unhandled Exception: System.ArgumentException: Vertex 2147483648 does not exist. at Itinero.Graphs.Geometric.GeometricGraph.GetVertex(UInt32 vertex) at Itinero.IO.Osm.Streams.RouterDbStreamTarget.TryGetValue(Int64 node, Coordinate& coordinate, Boolean& isCore) at Itinero.IO.Osm.Streams.RouterDbStreamTarget.AddWay(Way way) at OsmSharp.Streams.OsmStreamTarget.DoPull(Boolean ignoreNodes, Boolean ignoreWays, Boolean ignoreRelations) at Itinero.IO.Osm.Streams.RouterDbStreamTarget.OnBeforePull() at OsmSharp.Streams.OsmStreamTarget.Pull() at IDP.Switches.RouterDb.SwitchCreateRouterDb.<>c__DisplayClass3_0.<Parse>b__0() in C:\TeamCity\BuildAgent\work\38ea682527d0dcc0\src\IDP\Switches\RouterDb\SwitchCreateRouterDb.cs:line 177 at IDP.Switches.RouterDb.SwitchContractRouterDb.<>c__DisplayClass3_0.<Parse>b__0() in C:\TeamCity\BuildAgent\work\38ea682527d0dcc0\src\IDP\Switches\RouterDb\SwitchContractRouterDb.cs:line 95 at IDP.Switches.RouterDb.SwitchWriteRouterDb.<>c__DisplayClass3_0.<Parse>b__0() in C:\TeamCity\BuildAgent\work\38ea682527d0dcc0\src\IDP\Switches\RouterDb\SwitchWriteRouterDb.cs:line 74 at IDP.Program.Main(String[] args) in C:\TeamCity\BuildAgent\work\38ea682527d0dcc0\src\IDP\Program.cs:line 52

I have already used the idp version 2.15.0 and the latest on win10-x64

My command line is :

idp --read-pbf F:\Maps\portugal-latest.osm.pbf --pr --create-routerdb vehicles=car --contract car --write-routerdb F:\Maps\PT.routerdb

And download map from where http://download.geofabrik.de/europe/portugal-latest.osm.pbf

Any help?

Thanks

Error with asia-latest.osm.pbf

HI,

When I want to calculate the routerdb file with elevation for asia, I've this error :

image

Any help welcome !!!

Thanks

Vincent

switch not found

Hi,

I'm not able to read osm files. If I'm not mistaken it should be just a --read-xml or --rx as switch only a "Cannot find switch with name:"-Exeption is shown.
Am I missing any documentation here?

Thanks a lot!

edit: fyi - .osm.pbf files are working fine

get my router informaion from database


     using (var stream = new FileInfo(@"iran-latest.routerdb").Open(FileMode.Open))
            {
                routerDb = RouterDb.Deserialize(stream);
            }

            var router = new Router(routerDb);

In above code I wanna get my router information from The database not from a file!

Update to Itinero 1.3.0

Update to Itinero 1.3.0 and it's new options:

  • Extract a part of the routerdb.
  • Write the routerdb as a shapefile.
  • Keep original node id's or vertex id's when shapefile source.

Error when trying to add elevation

Hello,

When I try to convert north-america with elevation, I have this error :

C:\temp\Osm>..\idp\idp --read-pbf north-america-latest.osm.pbf --pr --create-routerdb vehicles=pedestrian --write-routerdb ..\routerdb\north-america-elevation.routerdb --elevation

Unhandled Exception: System.Exception: Cannot find switch with name: --elevation
at IDP.Switches.SwitchParsers.FindSwitch(String name) in C:\TeamCity\BuildAgent\work\38ea682527d0dcc0\src\IDP\Switches\SwitchParsers.cs:line 139
at IDP.Switches.SwitchParsers.Parse(String[] args) in C:\TeamCity\BuildAgent\work\38ea682527d0dcc0\src\IDP\Switches\SwitchParsers.cs:line 83
at IDP.Program.Main(String[] args) in C:\TeamCity\BuildAgent\work\38ea682527d0dcc0\src\IDP\Program.cs:line 48

Thanks

Vincent

[Question] Filtering

Is there any option to filter with idp? It seems like all the other pieces are in place to allow idp to select by bounding box and or feature similar to osmium.

Is there any example of this or is it simply not possible [yet]?

Debian 9

Would it be possible to add Debian 9 build ?

I tried to update IDP.csproj with the following but it didn't work.

<RuntimeIdentifiers>win8-x64;win10-x64;osx.10.11-x64;ubuntu.16.04-x64;debian-x64</RuntimeIdentifiers>

and

<RuntimeIdentifiers>win8-x64;win10-x64;osx.10.11-x64;ubuntu.16.04-x64;debian.9-x64</RuntimeIdentifiers>

Then run dotnet publish -c release -r debian-x64 and dotnet publish -c release -r debian.9-x64 but it didn't generate the ./IDP executable.
I guess I missed something !

Thanks :)

Question: adding custom tag

Looking at IDP I'd need to add a custom tag if the nodes referenced by a way is inside an area.
My idea was to create a filter like AddWayId but I don't know how to get the coordinates of the nodes contained in the Nodes collection of the Way.

Could you help me doing this.
Thanks
static OsmSharp.OsmGeo EventsFilter_AddWayId(OsmSharp.OsmGeo osmGeo, object param) { if (osmGeo.Type == OsmSharp.OsmGeoType.Way) { var w = (OsmSharp.Way)osmGeo; foreach(var node in w.Nodes) { //var lat = ?? how to get latitude of node } osmGeo.Tags.Add("way_id", osmGeo.Id.ToString()); } return osmGeo; }

Network shapefile : spatial index & projection

In addition of default .shp, .dbf and .shx files ...

  • Create spatial index .qix file
  • Create projection .prj file

Projection .prj file is a simple text file. For WGS84 (EPSG:4326) :

GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]

Exception: cannot add a duplicate edge

Hi all,
Creating a router db (Italy) using IDP I got the following exception (see picture).
I tried with pre-37 and the latest pre-62 version of Itinero.

Is there something that I can do?

image

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.