42 SXC 965214 452136
Will someone please tell me what kind of coordinates are the above? How distance can be derived from the above coordinates? I urgently need it.
Might be MGRS.
Related
Bit of a weird one I hope someone can help out with.
In leaflet, once the user has entered a lat/lng and added a point to the map I want to be able to also add a 10km square around that point.
I've tried looking around for a calculation to find the corners of the square x Km away but haven't dug anything up. But surely there's an easier way!
Does anyone have any thoughts? It'd be lovely to just say L.polygon then pass in a centre point and a square size.
Thanks,
Tayler
Initialize a L.Circle on your desired latitude/longitude with a radius of 5000 meters, grab the boundaries and use them to initialize a L.Rectangle:
new L.Rectangle(new L.Circle([0, 0], 5000).getBounds())
I go through the help of matlab and I found out that the function "estimateGeometrictransformation" doesn't support "Briskpoints". How can substute it. I have to implement a code to detect matching points. (like I saw in this example http://it.mathworks.com/help/vision/examples/object-detection-in-a-cluttered-scene-using-point-feature-matching.html)
Thank you.
If points is a briskPoints object, you should be able to use points.Location to get the x-y coordinates, and pass them to estimateGeometricTransformation.
Well,
I used to create Points or Polygons from latitude and longitud. Using something like that:
ST_Transform(ST_GeomFromText('POINT("+longitud+" "+latitud+")' ,4326),23030)
But on that moment my source are geometry values of thousands of points, and I would like to create a geometry Polygon value from them. But I don´t know if it is possible.
Also I have UTM coordinates(mine is 30 S), but I think that starting from geometry would be easier.
If someone could help me, I would be so gratefull.
Thanks
You can collect an array of point, cast to geometry[], and use ST_MakeLine.
SELECT ST_MakePolygon(ST_MakeLine( ARRAY[ point(1,2), point(3,4), point(5,6) ]::geometry[] ));
May I know how I should calculate the bearing of one point relative to another? All the formulas I'm seeing on the Internet are for lat/lon coordinates. I'm working with the Cartesian coordinate system here and am unable to find a solution. Please help!
Use atan2 function (IIRC your objective-c should have it).
It gives you a result between -PI and PI. You have to map it to 0-360 if you need it.
Not really an answer to your question, but if you're getting your points using CLLocationManager, each CLLocation has a course property, which gives you the bearing of your journey for the given point. For the actual math, see Axeman's answer.
I do not want any code but want to get reference that how can we find the angle between two locations defined by Latitude or Longitude...
If you do have reference then Please help me to solve my problem...
Thanx in advance....
The formula to calculate bearing is:
θ = atan2( sin(Δlong).cos(lat2), cos(lat1).sin(lat2) − sin(lat1).cos(lat2).cos(Δlong) )
Bearing is a direction to move from one location to another location (starting from north and then clockwise). While angle in 2D starts from the east and then counter clockwise. So if an angle is what you need, later you'll need to add 90 degree to the result and then revert it (add minus).
Reference:
http://www.movable-type.co.uk/scripts/latlong.html
try the Atan method
Math.Atan2(x1-x2,y1-y2)
Try this website, it does all the calculations for you. Whereas the formulas, those can be found on wiki or any other sites. I like this site cos it managed to help me settle a lot of problems. And even if this web tool was developed in San Francisco, even I am from Singapore. This will work.
Latitude and Longitude web tool