Comments and answers for "road network extraction" https://knowledge.亚搏在线safe.com/questions/49087/road-network-extraction.html The latest comments and answers for the question "road network extraction" Comment by lemzip on lemzip's answer https://knowledge.亚搏在线safe.com/comments/50287/view.html @redgeographicsThanks for the workbench.I have got it working but just a query,it looks like it is not including roads from OSM that should be within the aloted contour.Is this due to it being non node ended?

Thanks
Thu,10 Aug 2017 18:14:37 GMT lemzip
Comment by redgeographics on redgeographics's comment https://knowledge.亚搏在线safe.com/comments/49852/view.html Here you go.I'm using the OpenCage geocoder (removed my API key) to geocode an address,build a buffer around that and use that to extract data from OSM through the Overpass API (many thanks to @pimververfor figuring that one out).Then I'm adding some more data,built-up areas for The Netherlands,so I can make a guesstimate of the max speed in case it's not in OSM.The resulting road data is then cut in 4 slightly overlapping chunks to facilitate parallel processing.The NetworkCostCalculator does the actual work and I'm storing the drivetime distance as Z-values,then a ContourGenerator with some cleanup to end up with something that looks reasonably accurate and correct.
drivetime-sample.fmw


The problem is that it's still taking a fair amount of time to process,the parallel processing does make a big difference but it still takes my Mac 2 minutes to calculate an 8-minute drivetime contour and the processing time increases exponentially as the drivetime increases.
Mon,07 Aug 2017 11:20:06 GMT redgeographics
Comment by lemzip on lemzip's comment https://knowledge.亚搏在线safe.com/comments/49851/view.html
@redgeographics
thats brilliant,thanks!
Mon,07 Aug 2017 11:09:32 GMT lemzip
Comment by redgeographics on redgeographics's comment https://knowledge.亚搏在线safe.com/comments/49810/view.html I'll try and dig it up on monday. Sat,05 Aug 2017 08:01:39 GMT redgeographics Answer by markat亚搏在线safe https://knowledge.亚搏在线safe.com/answers/49794/view.html

I'd recommend validating the network first.All the FME network transformers assume that the network is clean.All intersections are fully noded and junctions occur at endpoints,not mid-point vertices.Use the NetworkTopologyCalculator to help validate the network and look for segments that do not connect

Fri,04 Aug 2017 22:04:31 GMT markat亚搏在线safe
Comment by lemzip on lemzip's comment https://knowledge.亚搏在线safe.com/comments/49739/view.html @redgeographics

Any chance you could kindly share the workbench part for the OSM/network cost work?Still struggling with this.

Thanks
Fri,04 Aug 2017 14:34:56 GMT lemzip
Comment by redgeographics on redgeographics's answer https://knowledge.亚搏在线safe.com/comments/49101/view.html To add to @mark_1spatial's answer: I have recently done something quite similar,also using the NetworkCostCalculator and assigning educated guesses for the max speed in cases where it wasn't available in OSM.I've also used the Overpass Turbo API to extract only the roads in a certain radius (determined by assuming somebody driving at 20% over the overall max speed in a straight line for x minutes) around my starting point.

You may also want to look into parallel processing on the NetworkCostCalculator,it'll save you a lot of time.

看到 this threadfor some more discussion.


Mon,31 Jul 2017 07:29:55 GMT redgeographics
Answer by lemzip https://knowledge.亚搏在线safe.com/answers/49095/view.html

sounds good mark,will give it a try.thanks

Mon,31 Jul 2017 00:29:44 GMT lemzip
Comment by mark_1spatial on mark_1spatial's answer https://knowledge.亚搏在线safe.com/comments/49093/view.html
P.S.You'll need to reproject the OSM from geographic lat long for a measure of distances or consider custom transformer GeographicLengthCalculator.
Sun,30 Jul 2017 21:52:20 GMT mark_1spatial
Answer by mark_1spatial https://knowledge.亚搏在线safe.com/answers/49092/view.html

@lemziphave a look at the NetworkCostCalculator transformer.Set the Weight Type By Length and output cost by Z value.Then test the Z values for your distance.



Sun,30 Jul 2017 20:42:17 GMT mark_1spatial