Tag Info

New answers tagged

1

Have you followed the instructions in the tool's help file? If the tool is grayed out, then you probably have not taken the first two critical steps. First, you must start an edit session. If your new points should be in the same database/file, then Editor > Start Editing will suffice. Otherwise you need to create a new database/file to hold your new ...


1

Since you only have 5 points, the following won't take too long. Make sure your layer is editable. In the Construction Tools in the create features dialog, select "Point at end of line" Begin drawing a line from one of you points by clicking on the point. Right click and choose Direction/Length and enter the details. Repeat for the remaining four ...


0

For anybody following this question, I've managed to answer it myself. I had edited all of the code correctly, however, if you wish to do this yourself, you will need to change the privacy setting of your table in cartoDB! I changed it from private to anybody with a link.


2

On the assumption that you have an Advanced level license (you do not specify otherwise), I think you should try the Near (Analysis) tool: Determines the distance from each feature in the input features to the nearest feature in the near features, within the search radius. ... Both input features and near features can be point, multipoint, ...


2

From a non scripting perspective, it would be fairly straightforward to do the following: Add two fields to each feature class: X1, Y1, X2, Y2 Calculate Geometry to populate the fields with the coordinates Join the two feature classes by common ID# Add a 4th field, DIST Field calculator with Python DIST = math.hypot(!X1!-!X2!, !Y1!-!Y2!)


0

/* I use the approach described below in determining the next coordinate given the bearing and distance from previous coordinate. I have problem on accuracy with other approach I read from the internet. I use this in determining the area of land, which is a polygon, and plot that polygon in google earth. A land Title has bearings and distances written in ...


0

If you want to measure in meters, switch the project CRS to a projection that uses metres, like the UTM zone of your part of the world. The layers can remain in the original CRS (something that SAGA presumably does not offer).


0

You should be able to go into "project proprties/general" and check that "Canvas units (CRS transformation: ON/OFF)" is set to meters


1

Yes, dealing with distance (or area) in unprojected latitude/longitude coordinates is fraught with peril. The length of a degree of latitude is always the same (60 nautical miles), but the length of a degree of longitude varies with the cosine of the latitude. To do it properly, you want to project your coordinates into some plane coordinate system and do ...


1

I believe that the distances in Google Earth assume the earth is a sphere with radius equal to the equatorial radius. (You should check for yourself by constructing and loading simple kml polylines with coordinates, e.g., 0,0 0,90 and 0,0 90,0.) So expect differences on the order of 1 part in 300 in Google's distances compared to the geodesic distance. To ...


0

First, one logs the zoom after the click query: var zoom = map.getZoom(zoom); console.log(zoom); Then one changes the sql to: SELECT cartodb_id, label FROM table_name where ST_Distance(the_geom, st_GeomFromText('POINT("+lon+" "+lat+")', 4326), true ) < (SELECT CDB_XYZ_Resolution("+zoom+")*(("+zoom+")*1.75)) ORDER BY label The number 1.75 is the ...


1

For every census tract, you want the distance to the city center for the city that the tract is part of? You don't need python, you can do it in ArcMap. Do ADDXY on both point layers. Add a field to the census tract centers to store the distance in. Join the attribute table of the city center points onto the tract centers using the city ID attribute ...


2

I think you want to do something like Generate Near Table or just Near which will allow you to join attributes between the points for each census tract and the near table to find the distance to the city centres. If you use closest only on the near table you will only get the closest feature, Near will always return just the nearest feature and distance ...


2

'atan' is short for arctangent, or inverse tangent. Here is the Excel explanation of the ATAN2 function (since you used the Excel tag), and a detailed look at ways to implement the calculation.


1

I assume you're referring to the 'a' in front of the 'tan'. It's not a variable, 'atan' is the arctangent or inverse tangent. Another form for same, in mathematics, is this: tan-1



Top 50 recent answers are included