-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error for building 'big' network with germany-latest.osm.pbf #141
Comments
Hi @SRN1973. We've never tested r5r in such a large area. I'll try it out on our server and see if there's something we can do to optimize it to very large networks. I'll keep you posted. |
I suspect this has something to do with the input data and not the size of the region - I'd expect errors due to large regions to be OutOfMemoryErrors. @mvpsaraiva is there any way to surface the full error message from R5, including line numbers? Without that this will be very difficult to debug. |
And if @SRN1973 has 1TB of RAM (hey, wanna share?), I would not expect any problems with something like Germany. Might need to raise the Java memory limit though with |
First of all thank you for the quick answer.
I already raised the Java memory limit to 500g. What do you mean with "full error message"? Do you want me to post all the console output of r5r?
I do not think that it is the input files. I already tested them wit OpenTripPlanner and there they worked well...or at leas they worked well for the 1.3.0...jar version of otp not for the newer ones or even otp2.
(If I try to build the network for the otp with this new versions the graph builds as expected but the writing of the graph to the harddisk fails with exactly the same error message I also encountered with r5r.
The curious thing is that if I only build the network for otp in memory the otp server starts as expected...as such I suspect in otp it has something to do with the process of saving the network graph on the disk)
regards,
Stefan
Von: "Matthew Wigginton Conway" <notifications@github.com>
An: "ipeaGIT/r5r" <r5r@noreply.github.com>
CC: "SRN1973" <stefan.neumeier@thuenen.de>, "Mention" <mention@noreply.github.com>
Gesendet: Montag, 25. Januar 2021 21:50:24
Betreff: Re: [ipeaGIT/r5r] Error for building 'big' network with germany-latest.osm.pbf (#141)
And if [ https://github.com/SRN1973 | @SRN1973 ] has 1TB of RAM (hey, wanna share?), I would not expect any problems with something like Germany. Might need to raise the Java memory limit though with options(java.parameters = "-Xmx8g") before loading r5r. Replace 8g (gigabytes) with as much as you can spare.
—
You are receiving this because you were mentioned.
Reply to this email directly, [ #141 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AQEL3BNJMEGL4N2QJNCXAG3S3XKRBANCNFSM4WRXLRQQ | unsubscribe ] .
…--
Dr. Stefan Neumeier
Thünen-Institut für Ländliche Räume
Bundesallee 64
38116 Braunschweig
E-Mail:stefan.neumeier@thuenen.de
Tel.: 0531-596-5241
!!! Auf Grund der Covid-19 Pandemie derzeit nur per Mail erreichbar !!!
Homepage: http://www.thuenen.de
-----------------------------------
Das Johann Heinrich von Thünen-Institut, Bundesforschungsinstitut für Ländliche Räume, Wald und Fischerei – kurz: Thünen-Institut – besteht aus 14 Fachinstituten, die in den Bereichen Ökonomie, Ökologie und Technologie forschen und die Politik beraten.
The Johann Heinrich von Thünen Institute, Federal Research Institute for Rural Areas, Forestry and Fisheries – Thünen Institute in brief – consists of 14 specialized institutes that carry out research and provide policy advice in the fields of economy, ecology and technology.
|
The full error message was more a question for @mvpsaraiva. R5 will be printing a full traceback of where the error occurred, but somehow that's not surfacing through R5R. A workaround would be to try building the graph from the command line, without going through R5R. From a shell prompt in the directory where your data is, you'd run |
Thank you for the hint how to get more output. Here is the output I receive when running the proposed command:
....
16:17:11.702 [main] WARN com.conveyal.r5.streets.StreetLayer - Did not find from/to edges for restriction 4429939, skipping
16:17:11.702 [main] WARN com.conveyal.r5.streets.StreetLayer - Did not find from/to edges for restriction 4429940, skipping
16:17:11.702 [main] WARN com.conveyal.r5.streets.StreetLayer - Did not find from/to edges for restriction 4429941, skipping
16:17:11.702 [main] WARN com.conveyal.r5.streets.StreetLayer - Did not find from/to edges for restriction 4429942, skipping
16:17:11.777 [main] ERROR com.conveyal.r5.streets.StreetLayer - Invalid turn restriction 4437683, does not have from, to and via, skipping
16:17:11.780 [main] ERROR com.conveyal.r5.streets.StreetLayer - Turn restriction 4437852 has multiple 'from' members, skipping.
16:17:11.780 [main] ERROR com.conveyal.r5.streets.StreetLayer - Turn restriction 4437855 has multiple 'from' members, skipping.
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 17384613
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.get(ArrayList.java:459)
at com.conveyal.r5.streets.StreetLayer.applyTurnRestriction(StreetLayer.java:896)
at com.conveyal.r5.streets.StreetLayer.lambda$loadFromOsm$1(StreetLayer.java:374)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at com.conveyal.r5.streets.StreetLayer.loadFromOsm(StreetLayer.java:374)
at com.conveyal.r5.streets.StreetLayer.loadFromOsm(StreetLayer.java:205)
at com.conveyal.r5.transit.TransportNetwork.fromFiles(TransportNetwork.java:142)
at com.conveyal.r5.transit.TransportNetwork.fromFiles(TransportNetwork.java:201)
at com.conveyal.r5.transit.TransportNetwork.fromDirectory(TransportNetwork.java:235)
at com.conveyal.r5.point_to_point.PointToPointRouterServer.main(PointToPointRouterServer.java:92)
at com.conveyal.r5.R5Main.main(R5Main.java:32)
Von: "Matthew Wigginton Conway" <notifications@github.com>
An: "ipeaGIT/r5r" <r5r@noreply.github.com>
CC: "SRN1973" <stefan.neumeier@thuenen.de>, "Mention" <mention@noreply.github.com>
Gesendet: Dienstag, 26. Januar 2021 15:33:12
Betreff: Re: [ipeaGIT/r5r] Error for building 'big' network with germany-latest.osm.pbf (#141)
The full error message was more a question for [ https://github.com/mvpsaraiva | @mvpsaraiva ] . R5 will be printing a full traceback of where the error occurred, but somehow that's not surfacing through R5R. A workaround would be to try building the graph from the command line, without going through R5R. From a shell prompt in the directory where your data is, you'd run java -Xmx500g -jar /usr/local/lib/R/site-library/r5r/jar/r5-v6.0.1-2-gf44e585-all.jar point --build . You may need to replace /usr/local/lib/R/ with the path your R installation. You can find the full path to the JAR file from the R prompt by running system.file("jar/r5-v6.0.1-2-gf44e585-all.jar", package='r5r') . I wouldn't expect this to succeed, but we will likely get a more useful error message.
—
You are receiving this because you were mentioned.
Reply to this email directly, [ #141 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AQEL3BJ2PA3WG6LFQNLYJJTS33HCRANCNFSM4WRXLRQQ | unsubscribe ] .
…--
Dr. Stefan Neumeier
Thünen-Institut für Ländliche Räume
Bundesallee 64
38116 Braunschweig
E-Mail:stefan.neumeier@thuenen.de
Tel.: 0531-596-5241
!!! Auf Grund der Covid-19 Pandemie derzeit nur per Mail erreichbar !!!
Homepage: http://www.thuenen.de
-----------------------------------
Das Johann Heinrich von Thünen-Institut, Bundesforschungsinstitut für Ländliche Räume, Wald und Fischerei – kurz: Thünen-Institut – besteht aus 14 Fachinstituten, die in den Bereichen Ökonomie, Ökologie und Technologie forschen und die Politik beraten.
The Johann Heinrich von Thünen Institute, Federal Research Institute for Rural Areas, Forestry and Fisheries – Thünen Institute in brief – consists of 14 specialized institutes that carry out research and provide policy advice in the fields of economy, ecology and technology.
|
This is definitely an upstream bug in R5, and it has to do with turn restrictions—I'll dig in a bit more later, but it might be a week before I can get to it. If you don't care about turn restrictions (which really only matter for driving, and to a lesser extent biking, but you can always walk your bike), you can use osmconvert with the |
Thank you for the quick answer. I will try it without turn restrictions tomorrow. As I am interested in public transport accessibility only and not accessibility by car (I calculate car bicycle and foot with the osrm) this should not be too problematic. Could you give me a hint how the relation containing the turn restrictions is tagged?
regards,
Stefan
Von: "Matthew Wigginton Conway" <notifications@github.com>
An: "ipeaGIT/r5r" <r5r@noreply.github.com>
CC: "SRN1973" <stefan.neumeier@thuenen.de>, "Mention" <mention@noreply.github.com>
Gesendet: Dienstag, 26. Januar 2021 17:08:09
Betreff: Re: [ipeaGIT/r5r] Error for building 'big' network with germany-latest.osm.pbf (#141)
This is definitely an upstream bug in R5, and it has to do with turn restrictions—I'll dig in a bit more later, but it might be a week before I can get to it. If you don't care about turn restrictions (which really only matter for driving, and to a lesser extent biking, but you can always walk your bike), you can use [ https://wiki.openstreetmap.org/wiki/Osmconvert | osmconvert ] with the --drop-relations option to remove them from your PBF. Then R5R should build the network, albeit without information on turn restrictions.
—
You are receiving this because you were mentioned.
Reply to this email directly, [ #141 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AQEL3BLQBQT3AHUOXA777DDS33SGTANCNFSM4WRXLRQQ | unsubscribe ] .
…--
Dr. Stefan Neumeier
Thünen-Institut für Ländliche Räume
Bundesallee 64
38116 Braunschweig
E-Mail:stefan.neumeier@thuenen.de
Tel.: 0531-596-5241
!!! Auf Grund der Covid-19 Pandemie derzeit nur per Mail erreichbar !!!
Homepage: http://www.thuenen.de
-----------------------------------
Das Johann Heinrich von Thünen-Institut, Bundesforschungsinstitut für Ländliche Räume, Wald und Fischerei – kurz: Thünen-Institut – besteht aus 14 Fachinstituten, die in den Bereichen Ökonomie, Ökologie und Technologie forschen und die Politik beraten.
The Johann Heinrich von Thünen Institute, Federal Research Institute for Rural Areas, Forestry and Fisheries – Thünen Institute in brief – consists of 14 specialized institutes that carry out research and provide policy advice in the fields of economy, ecology and technology.
|
Thank you for this workaround; it helped a lot! I just tested it and could build the network.dat.
Von: "Matthew Wigginton Conway" <notifications@github.com>
An: "ipeaGIT/r5r" <r5r@noreply.github.com>
CC: "SRN1973" <stefan.neumeier@thuenen.de>, "Mention" <mention@noreply.github.com>
Gesendet: Dienstag, 26. Januar 2021 17:08:09
Betreff: Re: [ipeaGIT/r5r] Error for building 'big' network with germany-latest.osm.pbf (#141)
This is definitely an upstream bug in R5, and it has to do with turn restrictions—I'll dig in a bit more later, but it might be a week before I can get to it. If you don't care about turn restrictions (which really only matter for driving, and to a lesser extent biking, but you can always walk your bike), you can use [ https://wiki.openstreetmap.org/wiki/Osmconvert | osmconvert ] with the --drop-relations option to remove them from your PBF. Then R5R should build the network, albeit without information on turn restrictions.
—
You are receiving this because you were mentioned.
Reply to this email directly, [ #141 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AQEL3BLQBQT3AHUOXA777DDS33SGTANCNFSM4WRXLRQQ | unsubscribe ] .
…--
Dr. Stefan Neumeier
Thünen-Institut für Ländliche Räume
Bundesallee 64
38116 Braunschweig
E-Mail:stefan.neumeier@thuenen.de
Tel.: 0531-596-5241
!!! Auf Grund der Covid-19 Pandemie derzeit nur per Mail erreichbar !!!
Homepage: http://www.thuenen.de
-----------------------------------
Das Johann Heinrich von Thünen-Institut, Bundesforschungsinstitut für Ländliche Räume, Wald und Fischerei – kurz: Thünen-Institut – besteht aus 14 Fachinstituten, die in den Bereichen Ökonomie, Ökologie und Technologie forschen und die Politik beraten.
The Johann Heinrich von Thünen Institute, Federal Research Institute for Rural Areas, Forestry and Fisheries – Thünen Institute in brief – consists of 14 specialized institutes that carry out research and provide policy advice in the fields of economy, ecology and technology.
|
@SRN1973 and @mattwigway , thank you both for this real quick exchange ! Since this is an upstream bug in R5, I will be closing this issue for now. Nonetheless, I would encourage @SRN1973 to open an issue about this at R5's github page. |
@mattwigway thanks for helping with this one. I'm checking how to make r5r's verbose mode more helpful. The way it is now, r5r outputs all ERROR, WARNING, and INFO messages when |
Just a heads up before closing this issue: r5r is much more 'verbose' now when |
Thanks for looking into this, @mvpsaraiva . Please, don't forget to update the NEWS files ;) |
Hello @mvpsaraiva @mattwigway @rafapereirabr @stupidpupil @SRN1973 I hope that you are all fine ? Thank a lot |
For my analyses I decided to implement a workaround. I create several overlapping networks (three in my case) ...
Von: "iamadouhassane" ***@***.***>
An: "ipeaGIT/r5r" ***@***.***>
CC: "SRN1973" ***@***.***>, "Mention" ***@***.***>
Gesendet: Freitag, 18. August 2023 10:38:11
Betreff: Re: [ipeaGIT/r5r] Error for building 'big' network with germany-latest.osm.pbf (#141)
Hello [ https://github.com/mvpsaraiva | @mvpsaraiva ] [ https://github.com/mattwigway | @mattwigway ] [ https://github.com/rafapereirabr | @rafapereirabr ] [ https://github.com/stupidpupil | @stupidpupil ] [ https://github.com/SRN1973 | @SRN1973 ]
I hope that you are all fine ?
I have the same issue on python code with r5py and i want to know please if you finalement resolve this problem.
I work currently with France data which size 4.10 GB ( see [ http://download.geofabrik.de/europe/france.html | http://download.geofabrik.de/europe/france.html ] )
Thank a lot
—
Reply to this email directly, [ #141 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AQEL3BPLX53VQ6F55PCEGVDXV4SXHANCNFSM4WRXLRQQ | unsubscribe ] .
You are receiving this because you were mentioned. Message ID: ***@***.***>
…--
Dr. Stefan Neumeier
Thünen-Institute of Rural Studies
(Thünen-Institut für Lebensverhältnisse in ländlichen Räumen)
Bundesallee 64
38116 Braunschweig
***@***.***
Tel.: 0531-596-5241
Homepage: http://www.thuenen.de
-----------------------------------
Das Johann Heinrich von Thünen-Institut, Bundesforschungsinstitut für Ländliche Räume, Wald und Fischerei – kurz: Thünen-Institut – besteht aus 15 Fachinstituten, die über sozioökonomische, ökologische und technologische Kompetenz verfügen. Das Thünen-Institut betreibt Forschung und Politikberatung mit Bezug zu ländlichen Räumen, Landwirtschaft, Wald und Fischerei.
The Johann Heinrich von Thünen Institute, Federal Research Institute for Rural Areas, Forestry and Fisheries – Thünen Institute in brief – consists of 15 specialized institutes with socioeconomic, ecological and technological expertise. The Thünen Institute conducts research and policy advice related to rural areas, agriculture, forests and fisheries.
|
thanks you for your quick response @SRN1973 thanks |
In my approach I do not lose any data. I work in whole Germany, but I am "only" interested in the accessibility of services in close proximity to the place of residence...As such I do not have connections crossing all network parts...
Maybe your overlapping areas do not fit your data/purpose and are too small? What do you mean wit NaN values? For some of my analysis regions (250m x 250m grid cells) I do not receive results because there does not exist a public transport opportunity for the time analyzed (and the r5r parameters chosen). For this kind of regions I do not get results, but this is a behavior I expect...
Von: "iamadouhassane" ***@***.***>
An: "ipeaGIT/r5r" ***@***.***>
CC: "SRN1973" ***@***.***>, "Mention" ***@***.***>
Gesendet: Freitag, 18. August 2023 10:49:58
Betreff: Re: [ipeaGIT/r5r] Error for building 'big' network with germany-latest.osm.pbf (#141)
For my analyses I decided to implement a workaround. I create several overlapping networks (three in my case) ... Von: "iamadouhassane" @ . > An: "ipeaGIT/r5r" @ . > CC: "SRN1973" @ . >, "Mention" @ . > Gesendet: Freitag, 18. August 2023 10:38:11 Betreff: Re: [ipeaGIT/r5r] Error for building 'big' network with germany-latest.osm.pbf ( [ #141 | #141 ] ) Hello [ https://github.com/mvpsaraiva | [ https://github.com/mvpsaraiva | @mvpsaraiva ] ] [ https://github.com/mattwigway | [ https://github.com/mattwigway | @mattwigway ] ] [ https://github.com/rafapereirabr | [ https://github.com/rafapereirabr | @rafapereirabr ] ] [ https://github.com/stupidpupil | [ https://github.com/stupidpupil | @stupidpupil ] ] [ https://github.com/SRN1973 | [ https://github.com/SRN1973 | @SRN1973 ] ] I hope that you are all fine ? I have the same issue on python code with r5py and i want to know please if you finalement resolve this problem. I work currently with France data which size 4.10 GB ( see [ http://download.geofabrik.de/europe/france.html | http://download.geofabrik.de/europe/france.html ] ) Thank a lot — Reply to this email directly, [ [ #141 (comment) | #141 (comment) ] | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AQEL3BPLX53VQ6F55PCEGVDXV4SXHANCNFSM4WRXLRQQ | unsubscribe ] . You are receiving this because you were mentioned. Message ID: @ . >
[ https://zimbra.thuenen.de/# | … ]
-- Dr. Stefan Neumeier Thünen-Institute of Rural Studies (Thünen-Institut für Lebensverhältnisse in ländlichen Räumen) Bundesallee 64 38116 Braunschweig @ . Tel.: 0531-596-5241 Homepage: [ http://www.thuenen.de/ | http://www.thuenen.de ] ----------------------------------- Das Johann Heinrich von Thünen-Institut, Bundesforschungsinstitut für Ländliche Räume, Wald und Fischerei – kurz: Thünen-Institut – besteht aus 15 Fachinstituten, die über sozioökonomische, ökologische und technologische Kompetenz verfügen. Das Thünen-Institut betreibt Forschung und Politikberatung mit Bezug zu ländlichen Räumen, Landwirtschaft, Wald und Fischerei. The Johann Heinrich von Thünen Institute, Federal Research Institute for Rural Areas, Forestry and Fisheries – Thünen Institute in brief – consists of 15 specialized institutes with socioeconomic, ecological and technological expertise. The Thünen Institute conducts research and policy advice related to rural areas, agriculture, forests and fisheries.
thanks you for your quick response [ https://github.com/SRN1973 | @SRN1973 ]
That is my alternative solution too, just i lost 30% of my data because i work in hole France data.
Is it normal to have NaN value when you implement transport network?
thanks
—
Reply to this email directly, [ #141 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AQEL3BJXCZPNDB2KIPMSKNTXV4UDNANCNFSM4WRXLRQQ | unsubscribe ] .
You are receiving this because you were mentioned. Message ID: ***@***.***>
…--
Dr. Stefan Neumeier
Thünen-Institute of Rural Studies
(Thünen-Institut für Lebensverhältnisse in ländlichen Räumen)
Bundesallee 64
38116 Braunschweig
***@***.***
Tel.: 0531-596-5241
Homepage: http://www.thuenen.de
-----------------------------------
Das Johann Heinrich von Thünen-Institut, Bundesforschungsinstitut für Ländliche Räume, Wald und Fischerei – kurz: Thünen-Institut – besteht aus 15 Fachinstituten, die über sozioökonomische, ökologische und technologische Kompetenz verfügen. Das Thünen-Institut betreibt Forschung und Politikberatung mit Bezug zu ländlichen Räumen, Landwirtschaft, Wald und Fischerei.
The Johann Heinrich von Thünen Institute, Federal Research Institute for Rural Areas, Forestry and Fisheries – Thünen Institute in brief – consists of 15 specialized institutes with socioeconomic, ecological and technological expertise. The Thünen Institute conducts research and policy advice related to rural areas, agriculture, forests and fisheries.
|
This discussion is related to Question 4 in our FAQ, where we discuss altenative solutions to the problem. @SRN1973, what exactly do you mean by creating "several overlapping networks" ? |
thank you for your answer @rafapereirabr, @SRN1973 @SRN1973 by several overlapping networks you mean that you split your region/country of study by several sub-regions for example for In my project, I calculate the travel time between 2 given points with all the modes of transport used so by default I put transport_modes = [TransitMode.TRANSIT, LegMode.WALK] @rafapereirabr |
@ iamadouhassane
by several overlapping areas I mean following:
I split my Germany network in three parts. A northern part, a middle part, and a southern part. Thereby every part is overlapping the adjacent part by around 100 km (what is enough for my purpose...examining basic services accessibility near the place of residence). Then I determine which of the sources of my analysis are falling in which of the three network parts (the areas not overlapping). In my analysis I first load the northern part and the northern sources, then the middle part and the middle sources etc. I also get empty travel time values. This occurs if there does not exist a public transport opportunity (can vary if other values are provided for the routing parameters, especially allowed walking time, number of allowed vehicle changes and overall travel time).
By the way somehow there is a relation error in the German OSM-files, somewhere in the "Bodensee" (lake Constance) region. To be able to build the routing network with the German OSM data you have to identify this part, remove it from the network...remove the relations in this part and add it to the network afterwards...otherwise r5r respectively r5 will not be able to build the network including the relations...
Von: "iamadouhassane" ***@***.***>
An: "ipeaGIT/r5r" ***@***.***>
CC: "SRN1973" ***@***.***>, "Mention" ***@***.***>
Gesendet: Freitag, 18. August 2023 15:04:24
Betreff: Re: [ipeaGIT/r5r] Error for building 'big' network with germany-latest.osm.pbf (#141)
thank you for your answer [ https://github.com/rafapereirabr | @rafapereirabr ] , [ https://github.com/SRN1973 | @SRN1973 ]
[ https://github.com/SRN1973 | @SRN1973 ] by several overlapping networks you mean that you split your region/country of study by several sub-regions for example for
FRANCE ( [ http://download.geofabrik.de/europe/france.html | http://download.geofabrik.de/europe/france.html ] ) take data from the 27 sub-regions, therefore ALSACE, AQUITAINE, AUVERGNE (...), is that what you mean please?
In my project, I calculate the travel time between 2 given points with all the modes of transport used so by default I put transport_modes = [TransitMode.TRANSIT, LegMode.WALK]
to feed a machine learning algorithm. Unlike with your project, I don't focus on the services available in the area
of the 2 places of residence but of course on the 2 points to have something more precise. Insofar as I did not use only public transport, that is to say that I combined
TransitMode.TRANSIT and LegMode.WALK, I am supposed to have a correct result even if there is no public transport (this is what I have
understood by reading the documentation, but I may be wrong). By NAN value, I mean that the calculated travel time is zero even though I have managed to take points that are in the same sub-region
To better understand me, here is a sample of the data comprising 2457 points on the image r5py_input.png (start coordinates =(ORIGIN_LON,ORIGIN_LAT) ,
and arrival coordinates = (DESTINATION_LON, DESTINATION_LAT)) . Once I apply the algo and calculate the travel time I have these results on the r5py_output.png file with the travel_time column which shows the time
path between the 2 points. On the r5py_output_freq.png image where I applied a simple count on the travel_time column, we see that on 60% of my input data this one is zero.
Hopefully, I explained the problem well.
[ https://github.com/rafapereirabr | @rafapereirabr ]
thank you for your answer, I'll see if it's applicable on python too if not I'm looking at how to implement it on R [ https://user-images.githubusercontent.com/47027790/261612472-5c4769c1-0c91-4887-a6be-12905eebc0c2.PNG ] [ https://user-images.githubusercontent.com/47027790/261612474-7516cdda-79ab-4383-99ac-586d317aef5d.PNG ] [ https://user-images.githubusercontent.com/47027790/261612479-d30a2f73-9996-44bd-ba78-28c7cab0d7bb.PNG ]
—
Reply to this email directly, [ #141 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AQEL3BMWNFM3G6BQ66BQNR3XV5R5RANCNFSM4WRXLRQQ | unsubscribe ] .
You are receiving this because you were mentioned. Message ID: ***@***.***>
…--
Dr. Stefan Neumeier
Thünen-Institute of Rural Studies
(Thünen-Institut für Lebensverhältnisse in ländlichen Räumen)
Bundesallee 64
38116 Braunschweig
***@***.***
Tel.: 0531-596-5241
Homepage: http://www.thuenen.de
-----------------------------------
Das Johann Heinrich von Thünen-Institut, Bundesforschungsinstitut für Ländliche Räume, Wald und Fischerei – kurz: Thünen-Institut – besteht aus 15 Fachinstituten, die über sozioökonomische, ökologische und technologische Kompetenz verfügen. Das Thünen-Institut betreibt Forschung und Politikberatung mit Bezug zu ländlichen Räumen, Landwirtschaft, Wald und Fischerei.
The Johann Heinrich von Thünen Institute, Federal Research Institute for Rural Areas, Forestry and Fisheries – Thünen Institute in brief – consists of 15 specialized institutes with socioeconomic, ecological and technological expertise. The Thünen Institute conducts research and policy advice related to rural areas, agriculture, forests and fisheries.
|
Thanks for the clarification, @SRN1973 ! |
Thanks for all of you @rafapereirabr @SRN1973 |
I realized that the r5r does not write back a calculated network.dat / respectively fails in the building process when the input files cover a whole country. (If I try the same for a small subset e.g. the city of Hamburg than r5r works as described and expected).
Operating System:
Ubuntu 20.04.1 LTS
RAM: 1 TB
120 cernels
Input files:
Command to build and save the Graph:
options(java.parameters = "-Xmx500G")
library(r5r)
r5r_core <- setup_r5(data_path = , verbose = TRUE)
Error Message:
...
4:13:13.159 [main] WARN com.conveyal.r5.streets.StreetLayer - Vertex 2590721757 not found to use as via node for restriction 4429938, skipping this restriction
14:13:13.159 [main] WARN com.conveyal.r5.streets.StreetLayer - Did not find from/to edges for restriction 4429939, skipping
14:13:13.159 [main] WARN com.conveyal.r5.streets.StreetLayer - Did not find from/to edges for restriction 4429940, skipping
14:13:13.159 [main] WARN com.conveyal.r5.streets.StreetLayer - Did not find from/to edges for restriction 4429941, skipping
14:13:13.159 [main] WARN com.conveyal.r5.streets.StreetLayer - Did not find from/to edges for restriction 4429942, skipping
14:13:13.199 [main] ERROR com.conveyal.r5.streets.StreetLayer - Invalid turn restriction 4437683, does not have from, to and via, skipping
14:13:13.201 [main] ERROR com.conveyal.r5.streets.StreetLayer - Turn restriction 4437852 has multiple 'from' members, skipping.
14:13:13.201 [main] ERROR com.conveyal.r5.streets.StreetLayer - Turn restriction 4437855 has multiple 'from' members, skipping.
Error in rJava::.jnew("org.ipea.r5r.R5RCore", data_path, verbose) :
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 19950683
The text was updated successfully, but these errors were encountered: