arcpy / sample-gp-tools

sample arcpy and Python geoprocessing tools
Apache License 2.0
51 stars 26 forks source link

how do I add location, angle and method in function? #13

Open basvanbemmel opened 6 years ago

basvanbemmel commented 6 years ago

I would like to have also the location, angle and the method in the function

In the Normal_analysis it is: arcpy.Near_analysis(in_features="filename1", near_features="filename2", search_radius="", location="LOCATION", angle="ANGLE", method="GEODESIC")

I have tried to incorporate it in the code but it doesnt work (yet). Any ideas how to do it?

data-navigator commented 6 years ago

Hey @basvanbemmel this looks like a general arcpy question. This repository just holds some example tools - the place that we support arcpy is the Python forum on Esri's GeoNet site:

https://community.esri.com/community/developers/gis-developers/python

To answer your question, I think you need to be using a search_radius when using the GEODESIC method. Since Geodesic is not bounded by an extent in the same way Planar is, you cannot do a Euclidean-Distance style analysis without specifying a limiting radius. Otherwise it just keeps going around and around the planet :)