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
0
votes
1 answer

is there any chance to change projection for geojson(mapshaper)

Hello all, i am using OpenLayers 5, Angular 6, mapshaper tool(converting shp to json). MapshaperTool, Git Code my process i have installed npm mapshaper --save i am able to upload different .shp files and able to get json features data. i have 2…
kks
  • 342
  • 5
  • 25
0
votes
1 answer

How can I add a projection (i.e., epsg=102001) to a Geopandas DF that's in in esri.extra, NOT proj_def.dat file?

I have a Geopandas dataframe with a CRS of epsg:4326 that I would like to transform to a CRC of espg:102001 which has a proj.4 definition as follows: proj4_102001 = '+proj=aea +lat_1=50 +lat_2=70 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +datum=NAD83…
tgmueller
  • 103
  • 1
  • 1
  • 6
0
votes
0 answers

WebGL Earth map in 2D rather than 3D?

Is there a simple way to display a WebGL Earth globe as a 2D map? I have a functional user interface that uses WebGL Earth, but it is starting to seem like 2D would function better for general use cases, so I was hoping there was a simple way to get…
obosa
  • 1
  • 2
0
votes
1 answer

Is there any projection that doesn’t clamp values when calling toLonLat()?

In OpenLayers 5, when getting the view extent using const extent = this.view.calculateExtent(this.map.getSize()) and then converting it to latLng using toLonLat() the result values are clamped (-180 to 180 for longitudes) if the map is at a very low…
Ricardo
  • 180
  • 2
  • 12
0
votes
0 answers

Which functions in Lua would one use to map or project an image onto the surface of a sphere?

I'm in the process of using Lua to create a spherical attitude and heading indicator (one could say it is similar to the ksp navball! ) for a project I'm working on. How would I project an image onto the surface of the sphere/ball? The ball should…
Conair
  • 21
  • 2
0
votes
1 answer

Openlayers not re-projecting WMS queries

I have an openlayers map in my project and I wanted to add WMS tiles to it. This is my code : const map = new ol.Map({ layers: [ new ol.layer.Tile({ name: 'wmstiles', source: new ol.source.TileWMS({ url:…
Qrom
  • 487
  • 5
  • 20
0
votes
0 answers

Printing result of calculation with 1 decimal number

As a beginner in Python and I stumbled upon a seemingly simple code that I can't make to work. I'm trying to print an output of calculation with 1 decimal number, this is one of the versions of the code I tried. I also tried using format(x/s,…
0
votes
1 answer

different results when projecting raster with or without aggregate

My goal is to reproject a raster called pftnc to have the same CRS and cell size of another raster sp, so they overlap perfectly and can be stacked. Files available here pftnc and sp I thought it was an issue with software, see the other question…
Herman Toothrot
  • 1,463
  • 3
  • 23
  • 53
0
votes
1 answer

Projections for different layers d3js

I have made a map which shows some circles and on click, the lines are shown. The map is overlayed on a leaflet basemap. The map works fine. Here is how I projected the map: d3.csv("going.csv", function(data) { going = data; …
Aneeqa
  • 113
  • 4
0
votes
1 answer

Changing projection of a netcdf

I have netcdf files of daily temperature and precipitation data How is it possible to Change projection of a netcdf? I have tried to doing this using raster function to read the files and reproject them with projectraster? Code_used a…
0
votes
1 answer

Projection of a SpatialPixelsDataFrame objects

I have created SpatialPixelsDataFrame objects from Raster files. But I cannot work it along with my SpatialPintsDataFrame object. I got this error message: Error in count.points(GPSLocs, Grass) : different proj4string in w and xy which means the…
0
votes
2 answers

How to plot, in Matlab, a mollweide map projection given a lat vector (Nx1), a longitude vector(Mx1), and data points (NxM)

I can do a simple pcolor or imagesc plot where dec=-90:1:90; ra=180:-1:-180; mydata=rand(181,361); imagesc(ra,dec,mydata) how do I plot this with a mollweide projection using matlab? I can do it in python quite easily, but the mapping functions…
Tom Mozdzen
  • 338
  • 4
  • 16
0
votes
0 answers

Plotting netCDF data with folium - python

I have a netCDF file which contains only x_orig and y_orig in LCC format(i.e. no latitudes, longitudes for each data value). I was able to correctly convert it to (lat, long) pair to plot them over Google Maps - where the projection I used is wgs84…
0
votes
0 answers

gdal or gnuplot projection with c++

I want to plot the geography with given value longitude, latitude and the color representative (basically three columns data, i.e., 60.5, 80, 234). Does anyone have such experience or idea for this?
0
votes
1 answer

getting the location of a static marker when the map is scrolled

I am trying to create an app where there is a static marker(ImageView) in the map.Initially using the Projection class the the latitude and longitude were 0.0 because the marker was placed in the center of the map in xml. When the user scrolls to a…
jobin
  • 1,489
  • 5
  • 27
  • 52