Tag Info

Hot answers tagged

2

The Generate Near Table tool in ArcGIS will do what you want, but it requires an Advanced license and will do it for all points/polygons - not just those associated with each other. This means for each of your 95 objects you will get the ranked distance for all 211 properties, so 20,045 rows in the table. You'd either have to filter the resulting table or as ...


1

Create numeric field (double) in the table of ballots and try this with field calculator. Code block: def TotalDist(shp ): p=shp.firstPoint mxd = arcpy.mapping.MapDocument("CURRENT") layers=arcpy.mapping.ListLayers(mxd, "facilities") lr=layers[0] g=arcpy.Geometry() geometryList=arcpy.CopyFeatures_management(lr,g) s=0 for f in geometryList: ...


1

This is a correct procedure. You can then use summarize table to get the sum of distance based on the ID's of your Ballot Boxes, and join this table. The point distance indeed provides distances based on the coordinate system, so in your case it will be meters, and if you don't specify a distance it will work on the full extent. As a remark, if you have a ...


1

This is fairly simple to achieve using QGIS (I think any version will do) and a very simple SQL statement in DB manager. But for that your that must be in some kind of spatial database (Postgis or spatialite). Since it's more accessible to most people, I will assume using spatialite, but the SQL statements are the same for Postgis. Create a new Spatialite ...


1

According to this tutorial the map function returns a list: >>> items = [1, 2, 3, 4, 5] >>> >>> def sqr(x): return x ** 2 >>> list(map(sqr, items)) [1, 4, 9, 16, 25] >>> So your code should be something like this: def Distance(Latitude, Latitude2, Longitude, Longitude2) pList = map(math.radians, ...


1

As commented under the OP, my suggestion is to use the Point Distance geoprocessing tool, if you have Advanced licensing. Run Point Distance tool to calculate the distance between all possible combinations of points Start editing Select by Attributes where ID1 <> ID2 Delete the selected records


1

The solution for the cross-track distance to a rhumb line is giving in this link which computes an accurate intercept for the WGS84 ellipsoid given a sufficiently accurate initial guess. This computes the shortest geodesic intercept. The geodesic intercept has the nice property that the angle of interception is 90°. (This isn't the case if the ...


1

I found the (or one) solution: One needs the Tool "Service Area" in Network Analyst. First, you need to have some necessary prerequisites: a) Set up a Network in Network Analyst. You need to have the Length of the roads/rivers/etc. as an attribute added while setting up the Analyst, name it e.g "Distance" b) You need a column in your location file which ...



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