Tag Info

Hot answers tagged

5

If your facilities and incidents are both feature layers, and you only care about finding the closest (and not 2nd closest, 3rd closest, etc.) then you can just run Spatial Join. Set your incidents as the target_features, facilities as join_features, and closest as the match_option, and it will join the attributes of the nearest facility to each incident.


4

The simplest way to do this is to use the linear referencing methods with Shapely. from shapely.geometry import LineString, Point # Example data busRoute = LineString([(80, 380), (160, 380), (220, 370), (280, 330), (310, 210), (379, 185)]) currentLocation = Point(280, 350) # The current location is not exactly on the bus route ...


2

You could try running your point and polyline dataset through the spatial join geo-processing tool. If you set the match option to closest you can also specify a distance field which gives you the distance to the nearest polyline. From that you can do your summary statistics. So fire up desktop help and look for the spatial join tool.


1

If you have an ArcInfo (or Advanced) license level the Near Analysis tool should give you exactly what you need. It will add the ID of the nearest feature to your input point feature class attribute table, and a distance as well. FYI - The distance will be in the units of your input data's projection.


1

If you have ArcInfo you can run a Near analysis to calculate the distance to the nearest feature and then get the average from the NEAR_DIST field. If you don't have you may need to write a script and depending on the size of your data-sets, you may want to create a fishnet first to minimize the amount of processing time.


1

Although I have found no documentation to the effect that a Projected Coordinate System is required it is perhaps unsurprising that a Geographic Coordinate System is unsupported because the length of a degree varies depending on the latitude. I suspect that a documentation enhancement is the most that is likely to happen with this but I encourage you to ...


1

In Arc10.1 there are 3 tools that will complete this task: Near Near3d (3d analyst) Generate Near Table Both Near and Near 3d will change your original data while Generate Near Table will create a separate table output. Near 3d may be the best option for mountainous terrain with high relief, but if you lack the 3d Analyst license or are working ...



Only top voted, non community-wiki answers of a minimum length are eligible