wgs84

Convert WGS84 to OSGB36

笑着哭i 提交于 2019-12-13 00:28:22
问题 Is there any known java library which allows me to convert WGS 84 cords to OSGB36 or if there is a good formula I can use? I am currently using this one, but it's not very accurate so I'm wondering if there's a better one I can use. private static double[] Wgs84ToBNG(double inLat, double inLon) { double lat = inLat * Math.PI / 180.0; double lon = inLon * Math.PI / 180.0; double a = 6377563.396; // Airy 1830 major & minor semi-axes double b = 6356256.910; double F0 = 0.9996012717; // NatGrid

Distance betweeen coordinates Python vs R computation time

感情迁移 提交于 2019-12-11 17:31:26
问题 I am trying to calculate the distance between one point and many others on a WGS84 ellipsoid - not the haversine approximation as explained in other answers. I would like to do it in Python but the computation time is very long with respect to R. My Python script below takes almost 23 seconds while the equivalent one in R takes 0.13 seconds. Any suggestion for speeding up my python code? Python script: import numpy as np import pandas as pd import xarray as xr from geopy.distance import

Creating world file for maptiler

跟風遠走 提交于 2019-12-11 07:44:51
问题 I have an image which 21810x14872 that project a box of an area with coordinate: top, left corner latitude longitude : 23.635069763547662 , 58.09107365049769 bottom, right corner latitude longitude : 23.598520470202025 , 58.14957297881731 OR using WGS84 northing, easting: top, left corner easting, northing : 617289.588, 2610249.342 bottom, right corner easting, northing : 611289.588, 2614249.428 My image use projection of WGS84. How do I create world file for maptiler using above description.

Convert Lambert conformal conic projection to wgs84 in r

人走茶凉 提交于 2019-12-11 03:25:51
问题 I have Lambert conformal conic projection x,y information. I need the WGS84 coordinate. But I don't know what is lcc exactly. I have provided the lcc information below. Is there a way to convert lcc to WGS84 in r? example lcc x,y : xy <- cbind(c(509535.7, 514535.7),c(201098.6, 201098.6)) lcc information : Latitude of first standard parallel : 30.0 Latitude of second standard parallel : 60.0 Origin latitude : 38.0 Origin longitude : 126.0 Easting of computation point : 43 Northing of

Shortest distance between a line segment and a point in WGS84 crs using geotools api

假装没事ソ 提交于 2019-12-10 18:08:37
问题 In geotools you can find distance between two geometries using the distance function in Geometry class. There is a Point subclass of Geometry but no line segment subclass of Geometry. There is however LineSegment class which derives from LineString which is not subclass of Geometry class. I tried using JTS but it appears as JTS is only for Cartesian coordinate system. Question: How to find shortest distance (in meters) between a LineSegment and a Point in WGS84 crs. Please note: I know there

Converting LLA to XYZ

只谈情不闲聊 提交于 2019-12-10 16:09:14
问题 Can you help me to convert lla to xyz coordnates. I am using earthRadius = 6378.137; var x = earthRadius * Math.cos(lat)*Math.cos(lon); var y = earthRadius * Math.cos(lat)*Math.sin(lon); var z = earthRadius * Math.sin(lat); this method to convert to xyz coordinates. But it does not give the correct result I want. Earth is defined as wgs84 object. 回答1: I solved my problem Lat Long to X Y Z position in JS .. not working this formula is the correct one. Thanks for Stephen Quan for answering this

Distance using WGS84-ellipsoid

拈花ヽ惹草 提交于 2019-12-10 13:40:09
问题 Consider points P1 (60°N, 20°E, 0) and P2 (60°N, 22°E, 0) on the surface of the Earth What is the shortest distance between the points P1 and P2, when the shape of the Earth is modeled using WGS-84 ellipsoid? 回答1: Unfortunately, Vincenty's algorithm fails to converge for some inputs. GeographicLib provides an alternative which always converges (and is also more accurate). Implementations in C++, C, Fortran, Javascript, Python, Java, and Matlab are provided. E.g., using the Matlab package:

Distance of wgs point from a wgs defined line segment

落爺英雄遲暮 提交于 2019-12-09 14:00:29
问题 I searched but I could not find a complete answer. In C# if at all possible. I need the shortest distance between a WGS point and a WGS point defined line segment on a sphere (Earth exactly). float DistanceInKilometres(PointF LineStartA, PointF LineEndB, PointF ThePoint) EDIT: Perhaps an illustration would help Please note that this is an ideal example. 'The point' could be anywhere on the surface of the sphere, the segment start-end, too. Obviously, I'm not looking for the distance through

convert wgs 84 to lat/long

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-09 13:51:20
问题 Hi I am having a little trouble figuring out how to convert between types of coordinates. I have a list of coordinate sets with the following description "Coordinates are always in the WGS84 system. All coordinates a represented as integer values x and y where the coordinate value is multiplied with 1,000,000." An example: 559262 6319512 Well, I need to convert these to long/lat (and back) so i can use these in google maps (android). But this is not as easy as it seams. I have been searching

Convert longitude latitude coordinates (WGS) to grid with equidistant axes (in given area)

穿精又带淫゛_ 提交于 2019-12-08 11:56:21
问题 I have a lot of geocoordinates in tow data sets and want to run a nearest-neighbor-search. I came across the package 'RANN' and the function nn2(x,y) runs really fast. Now there is the problem, that of course in the area of London a degree to the north is a quite a longer way then a degree to the west. My idea now was to convert the location coordinates to some grid where one step in the direction of x is nearly the same as one step in the direction of y. The area is London (Center -0.1045,51