map-projections

D3 cartography: lon/lat circles in wrong place on map (projection)

不想你离开。 提交于 2020-05-26 09:08:46
问题 I have a question about D3 cartography. I am working on a little project and I am new to D3. I have started out from this example: http://bl.ocks.org/mbostock/5914438 Instead of the showing the state-mesh, I would like to show circles on the map in certain locations (lon/lat). I am currently facing a problem that the circles are not on the correct spots on the map. I suspect the problem lies in the special projection that Mike uses. He uses a 1x1 square projection. Probably this is necessary

D3 cartography: lon/lat circles in wrong place on map (projection)

烈酒焚心 提交于 2020-05-26 09:07:29
问题 I have a question about D3 cartography. I am working on a little project and I am new to D3. I have started out from this example: http://bl.ocks.org/mbostock/5914438 Instead of the showing the state-mesh, I would like to show circles on the map in certain locations (lon/lat). I am currently facing a problem that the circles are not on the correct spots on the map. I suspect the problem lies in the special projection that Mike uses. He uses a 1x1 square projection. Probably this is necessary

How to update projection of GeoAxes using Cartopy?

安稳与你 提交于 2020-04-17 21:15:10
问题 I'm trying to make a somewhat interactive map plot with matplotlib utilizing a button added to the toolbar in Matplotlib's navigation Toolbar. The objective: The objective that I'm trying to achieve is to be able to change the axes projection on the fly without creating a new axes. There are many methods in the axes object that gets created by Matplotlib to change other aspects of the plot, but I want to be able to change projection from say, PlateCarree to NorthPolarStereo and vice versa.

How to update projection of GeoAxes using Cartopy?

自古美人都是妖i 提交于 2020-04-17 21:11:26
问题 I'm trying to make a somewhat interactive map plot with matplotlib utilizing a button added to the toolbar in Matplotlib's navigation Toolbar. The objective: The objective that I'm trying to achieve is to be able to change the axes projection on the fly without creating a new axes. There are many methods in the axes object that gets created by Matplotlib to change other aspects of the plot, but I want to be able to change projection from say, PlateCarree to NorthPolarStereo and vice versa.

Lambert conic conformal projection in d3

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-19 14:50:48
问题 I'm trying to project a set of points ([long, lat] tuples) on top of an SVG map of my home country Austria: https://commons.wikimedia.org/wiki/File:Austria-geographic_map-blank.svg The description of the SVG file on Wikimedia gives a projection name and the bounds of the map: Lambert Conformal Conic, WGS84 datum Geographic limits of the map: West: 17.2° W East: 9.3° W North: 49.2° N South: 46.0° N Naive as I am, I thought this information would be enough to create the right kind of projection

Leaflet map with WMS and custom projection

时光毁灭记忆、已成空白 提交于 2020-01-14 07:53:28
问题 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 better. The supplier of the maps uses EPSG:32624, but I cannot seem to get that projection right. This is the complete list: EPSG:32624, EPSG:32619, EPSG:32620, EPSG:32621, EPSG:32622, EPSG:32623, EPSG:32624, EPSG:32625, EPSG:32626, EPSG:32627, EPSG

Obtaining coordinates in projected map using Cartopy

老子叫甜甜 提交于 2020-01-13 20:20:11
问题 I'm trying to obtain the coordinates of the features of a map using Cartopy but I would like to obtain the map projected coordinates instead of the data from the original projection. For instance: import matplotlib.pyplot as plt import cartopy.crs as ccrs fig = plt.figure(figsize=(10, 10)) ax = plt.axes(projection=ccrs.epsg(3857)) fig.add_axes(ax) ax.coastlines() ax.set_global() lines = ax.plot((0, 360), (-85.06, 85.06), transform=ccrs.PlateCarree()) fig.show() The previous code shows a map

Matplotlib Mollweide/Hammer projection: region of interest only

て烟熏妆下的殇ゞ 提交于 2020-01-06 01:16:53
问题 I was wondering if there's a way to only show the region of interest from a plot based on Mollweide/Hammer projection in basemap (matplotlib). I am trying to set the plot-bounds roughly to the Pacific plate, as in the link below. However, the set_xlim and set_ylim functions do not seem to have any effect. Thanks in advance for any guidance. http://geology.gsapubs.org/content/29/8/695/F1.large.jpg 回答1: From the documentation, both Hammer and Mollweide projections don't allow this as they print

matplotlib.mlab.griddata very slow and returns array of nan when valid data is input

偶尔善良 提交于 2020-01-01 03:24:11
问题 I am trying to map an irregularly gridded dataset (raw satellite data) with associated latitudes and longitudes to a regularly gridded set of latitudes and longitudes given by basemap.makegrid() . I am using matplotlib.mlab.griddata with mpl_toolkits.natgrid installed. Below is a list of the variables being used as output by whos in ipython and some stats on the variables: Variable Type Data/Info ------------------------------- datalat ndarray 666x1081: 719946 elems, type `float32`, 2879784

How to find correct way to project point on triangle for drawing line on mesh?

蓝咒 提交于 2019-12-25 00:12:39
问题 I have mesh and 2 points on it - A and B . Each point lies on some triangle of mesh. The main goal is - draw correct line on mesh using 2 points. When points lies on triangles with different planes - I have problems with line drawing. What I do: CurrentTriangle = triangle on which the point A lies. While CurrentTriangle != triangle with point B: Get B projected( Bp ) to CurrentTriangle: moving B by -CurrentTriangle.normal * distance to plane. Find the exit point from the triangle - the