Select to view content in your preferred language

Network Analyst performance in Java ArcObjects vs Python

2752
2
05-13-2016 01:44 PM
ArjunDongre
Regular Contributor

Does anybody have an experience in performing network analyst calculations in ArcObjects versus python? Does ArcObjects tend to run faster than Python? specifically running a Closest Facility Analysis and OD Cost Matrix Analysis.

Thanks!

Arjun

0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

python doesn't actually 'do' anything, python access to the arcpy.na module provides access to the tools that are already in arctoolbox for example... Make Closest Facility Layer—Help | ArcGIS for Desktop  so you can create a python script that imports the arcpy network analyst module, giving it access to the tool interface.... from there, I am sure you will find everything is a big wrapper around arcobjects code.

So consult What is the Network Analyst module?—Help | ArcGIS for Desktop

and you can explore the classes and functions available and you can even try to glean what is going on in the uncompiled (ie non-pyd or dll) in your installation directory,

Python access is good if you want to automate a network analyst workflow making modelbuild a complete waste of time if this is the route you are trying to go.

0 Kudos
ArjunDongre
Regular Contributor

I may see if there is a difference in speed between solving on the MakeClosestFacilityLayer and directly running a findclosestfacility process.

0 Kudos