The original post here is from 2014 and is referring to ArcGIS Desktop (that is not ArcGIS Pro).
We do not have similar functionality in Pro yet ... we are currently working on including this in Pro but it will most likely be a different approach as compared to Desktop.
So that being said if you are using ArcGIS Desktop there are some samples at
https://github.com/Esri/arcobjects-sdk-community-samples/tree/master/Net/Networks
See SubsetNetworkEvaluators and\or SelectionRestriction.
Sorry, I curious about how to create the custom evaluator.
Is there any tutorial of this all work?
Very appreciate!
Hi, Mody! Can it be translated to Java? Yes. How do you do the registration? Good question! I have not registered a Java custom evaluator before. It should be possible, but I'm not sure how.
Hopefully, someone with more experience in Java and ArcObjects can answer for you.
I found an entry about how the RegTool had been deprecated and as of 10.0 it is recommended to put jars into well known locations. But I don't know if that will work.
Hi Thibaut
The custom evaluator is reading the data in real time. It will use the current data.
You can even set different values for different times and the evaluator will read it (if you program it to do it).
Mody
Hi Patrick,
The custom evaluators (we are using these) are useful if the data is stable. But when the restrictions are changing frequently (multiple times a day) the barriers seem more appropriate, because you don't need to rebuild the network with every new restriction location.
Do you see a solution for frequently changing time aware barriers/restrictions without a network rebuild?
Thanks,
Thibaut
Hi Patrick
Can this example be translated to Java?
How do you do the registration?
Thanks
Time-aware barriers and restrictions are not yet supported "out-of-the-box" for network analyst.
However, you can craft a custom evaluator to your own uses to support something similar. Here is the time-aware restriction evaluator:
http://www.arcgis.com/home/item.html?id=dc2e55c6e9c64cb19a5e8e3224032c87
That evaluator uses a CSV local to the network to apply a time window to restrict or allow traversal across network elements.
The campus data model also uses a version of this evaluator.
We try to achieve the same thing over here. Is there maybe a possibility to 'intercept' the barriers in ArcObjects code? Kind of the same way you can create a custom time aware evaluator?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.