Questions tagged [map-projections]

A map-projection transforms the coordinates of the spherical earth to a flat map in cartesian (x,y) space.

A map-projection transforms the coordinates of the spherical earth, usually given in degrees (latitude, longitude), to a flat cartesian (x,y) space.
There is no perfect projection, it can be proved that each projection has a drawback, one have minor others major ones.

448 questions
8
votes
4 answers

d3.js. Spinning globe with bars

I am trying to create spinning globe with bars like in this example. You can see my example here. And everything goes fine until bars go over horizon. I have no idea how to cut bars from the bottom when they on other side of planet. Anybody can…
zeleniy
  • 2,232
  • 19
  • 26
8
votes
0 answers

Leaflet map with WMS and custom projection

I have implemented a map using Leaflet and tiles from a WMS-service. They offer a list of projections, where of one is usable in standard Leaflet EPSG:4326. However, the map looks a bit distorted, and I recon one of the other projections would be…
Steen
  • 2,749
  • 2
  • 20
  • 36
8
votes
2 answers

jVectorMap coordinates for the bbox

I created a custom SVG country map and plotted it with jVectorMap. Now I am trying to insert markers using lat/long on this map, but I don't understand how the "bbox" x;y system works. I guess I have to do an inverse projection of the max and min…
8
votes
2 answers

Grid badly displayed using ggplot2

I am trying to plot celestial object on the sky (basically with coordinates equivalent to latitude/longitude). I successfully plotted all my points using the "aitoff" projection of the coord_map function, but in this case, the grid is badly…
Arnaud
  • 157
  • 1
  • 8
7
votes
1 answer

Mercator map projection logic conflict

I'm looking for an explanation on why there are 2 different mercator formulas discussed on these sites. I understand this to be the correct mercator projection algorithm: http://en.wikipedia.org/wiki/Mercator_projection y = ln|sec(lat) + tan(lat)|…
glutz
  • 1,889
  • 7
  • 29
  • 44
7
votes
3 answers

Conversion between different Map projections in Java

In my GIS application the data are sometimes stored in "Google Mercator" (in meters), sometimes in WGS84 LatLon. I'd like a reliable library to convert this data easily and in a "scientific" way, rather than messing with it manually, risking big…
Mulone
  • 3,603
  • 9
  • 47
  • 69
7
votes
1 answer

Creating An Orthographic Map Using ggmap

In the following script, I read in a number of pairs of points and draw lines on a map. I am using ggmap to pull in a map from google to plot this lines…
Brideau
  • 4,564
  • 4
  • 24
  • 33
6
votes
1 answer

d3.js click and apply zoom and pan to distribute points located inside a targeted division to the triggered subdivisions

Based on the response and example made by Andrew Reid, I produced this pen code here points_in_subdivisons: on clicking on areas(Germany) on the screen We want to offer a smooth animation from one close-up on the map to another by using ZOOM…
Schwertfisch
  • 133
  • 3
  • 16
6
votes
0 answers

How to plot vectors on a healpy map (quiver for healpy?)

I'd like to know the simplest way to plot vectors or oriented line segments on a healpy map, e.g. Fig 22 of this paper: https://arxiv.org/abs/1807.06212, screenshotted below. Is something like matplotlib's quiver available to plot on e.g.…
S E Clark
  • 423
  • 4
  • 15
6
votes
2 answers

Calculate bounding box of static google maps image

Lets say I request this image from the google static maps API https://maps.googleapis.com/maps/api/staticmap?center=52.591370,-2.110748&zoom=18&size=600x600&maptype=satellite&markers=color:blue|52.591370,-2.110748 I get a 600px x 600px image…
6
votes
2 answers

How to fix map boundaries on d3 cartographic raster reprojection?

I try to use the raster reprojection of a map following this example. If I change the example kavrayskiy7 projection by the Azimuthal Equidistant projection, var projection = d3.geo.azimuthalEquidistant() .scale(90) .translate([width / 2,…
6
votes
0 answers

OpenCV - flat panorama to cubic or equirectangular projection?

I'm stuck in this problem for about 2 months now, tried every relevant SO post, blog and tutorial I could find out there. please help: I have a flat panorama image, which I want to convert either into cubeMap or Equirectangular format. I've used…
Sabir Ali
  • 475
  • 2
  • 16
6
votes
1 answer

Compute Shader write to texture

I have implemented CPU code that copies a projected texture to a larger texture on a 3d object, 'decal baking' if you will, but now I need to implement it on the GPU. To do this I hope to use compute shader as its quite difficult to add an FBO in my…
mike
  • 194
  • 1
  • 2
  • 18
6
votes
1 answer

Setup projection on Leafletjs

Im using an Leafletjs for an home project(This is have it looks, right now. But i can't find have to setup the projection, i have found it for OpenLayers, which looks like this: // Openlayers settings //var defaultMaxExtent = new…
mortenstarck
  • 2,713
  • 8
  • 43
  • 76
6
votes
3 answers

Preventing partial mapping of coastlines

How does one prevent country polygons from being cut off under different projections? In the following example, I would like to do a stereographic projection map of Antarctica including latitudes < -45°S. By setting my y-limits to this range, the…
Marc in the box
  • 11,769
  • 4
  • 47
  • 97
1
2
3
29 30