itinero / idp Goto Github PK
View Code? Open in Web Editor NEWItinero data processor.
Itinero data processor.
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
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
Must be referenced Reminiscence 1.2 because with version 1.1 a missing method exception is rised.
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 and it's new options:
Any plans to support this soon?
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
Add the possibility to extract name:fr
, name:nl
, name:ge
in the shapefile (in addition of name
).
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]?
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 :)
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; }
In addition of default .shp
, .dbf
and .shx
files ...
.qix
file.prj
fileProjection .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"]]
If you are interested I've modified the project to load multiple pbf.
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.