Plot points by Latitude and Longitude in Highmaps - highmaps

I am trying to plot missing countries on the Highmaps world high resolution map. However it is difficult to get the correct co-ordinates.
It appears this may be difficult because the charts do not correspond with latitude and longitude. For example world high-resolution has 1750 points on the X axis, so half is 875, but GMT is at about 839.
Ideally I am looking for a formula that can be used to convert latitude and longitude to x/y, but do not know how to do this.

Related

I am using tmap library to make a plot of vector dataset. I am unable to add the latitude and longitude in degrees

I am trying to spatial plot from the attribute table of a vector file.
I am unable to add latitude and longitude in degree minutes.
Here is the code.
Now kindly help me to add the latitude and longitude to the map with regular interval.

How to un-normalize geo points in order to plot on leaflet

Leaflet consists of multiple self worlds. General limit of latitude n longitude is -90 to +90 and -180 to +180 respectively. So for a different number of world in map area i receive {lat: 76.12621315046384, lng: 370.70826412409673}, which i normalize to the limit format and send as a param to server in order to receive points based on an algorithm. However the points that i receive are in normalized format already which will plot on the initial first map only, however i would like to plot them on that number of world on map area from which i retrieved longitude as 370.70826412409673.
I tried getting getting pane, scaleZoom, zoomScale, scale, zoom but nothing seem to work in order to get me the world number or anything that helps me de-normalize the geopoints.
You can use the function getBounds() that gives you the coordinates of the two corners of the current view and/or getCenter(). You can then change your longitude to fit this view.
An other solution is to keep the offset between the normalized and "true" coordinates, and add it back to the answer of your algorithm.

Calculating longitude distortion on approach to poles?

I'm working on a game in which players are trying to target points on a sphere.
As targets approach the poles, the game should become more forgiving in longitude because the ratio of longitude distance to latitude distance grows. At the poles, the game should be infinitely forgiving in longitude.
What formula am I looking for that tells me how much longitudinal distance equals 1 unit of latitudinal distance for a particular latitude? Assume that longitude and latitude are expressed as floats ranging from 0-1, and at the equator (0.5) longitude equals latitude.
Formula is rather simple (for usual spherical coordinates with -Pi/2..Pi/2 latitude range):
Lon_Lat_Ratio = Cos(Latitude)
But your parametrization is different, so
Lon_Lat_Ratio = Sin(Latitude_01 * Pi)
Ratio is 1 on equator and 0 at poles

Finding distance between two points using latitude and longitude in Degree Minutes Seconds format

I am working on a tool to find the distance between two points whose latitude and longitude are given. Its ok when the latitude and longitude is given in Signed Degree Format. But I couldn't find a way to calculate the distance when latitude and longitude is given in Degree Minutes Seconds Format (ex: N 11° 14' 52').Can anybody suggest me a way to find the distance ?
So first convert the DMS coordinates to your degree format.
e.g. 11°14'52" = 11 + 14/60 + 52/3600 = 11.24777778 degrees
and then continue as you did with your destance calculation that you say already works.
Edit:
Note that latitudes in the southern hemisphere and longitudes in the western hemisphere are negative. So the above formula really should be:
sign(degrees) * (abs(degrees) + minutes/60 + seconds/3600)

Convert WGS84 into Latitude and Longitude

I need to convert wgs84 values into latitude and longitude values. I need to convert values into latitude and longitude and drop a pin on mapview. For example in plist i have got values SDO_X1= 39616.4535 and SDO_Y1=37472.9078, How do i convert these values into degree,radians or latitude and longitude, please help me. All locations are for Singapore
Re "values SDO_X1= 39616.4535 and SDO_Y1=37472.9078".
Knowing that these are based on "WGS-84" is not enough information to answer the question. They are not "WGS84 values", because "WGS84 values", in decimal form, would be degrees decimal, e.g. -180 to +180 in X, -90 to +90 in Y.
Judging by the size of the values, they are probably measurements in meters, relative to some reference point.
Googling, I see that the official projection for Singapore is known as "SVY21".
CAVEAT: Unless these are from a land survey prior to 2004, in which case you need to ask a local land surveyor or appropriate government official to help you convert these. Or any reference source that provides the table or formula for these older surveys.
Assuming these are SVY21 values, then see the answer to Easting northing to latitude longitude