Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
106 views

Python geopandas, adding a basemap with contextily causes some shapefiles to disappear

I am trying to make a map with several layers and a light grey background basemap from carto DB positron. This code works (no basemap), all crs set to "EPSG:5070": import matplotlib.pyplot ...
Sandra T's user avatar
1 vote
1 answer
282 views

GDAL hillshade doesn't match with Matplotlib Basemap coastline

I try to plot hillshade image processed with GDAL with matplotib basemap coastline, but the resulting projection did not match. Here are my code: from mpl_toolkits.basemap import Basemap import ...
greensquare68's user avatar
6 votes
1 answer
368 views

Accessing and using the QuickMapServices Plugin externally (outside of QGIS)

I would like to add a OSM Standard Basemap to my project through a python script running in PyCharm, outside of QGIS. Within QGIS, I use QuickMapServices and add an OSM Standard Map but I can not seem ...
LiamHems's user avatar
  • 203
1 vote
0 answers
389 views

Failure to use a WMS map as a map background in Geonode

I try to add a new background to a map, so that user can choose from more options than the default ones. The default map backgrounds are defined as follows: DEFAULT_MS2_BACKGROUNDS = [ { &...
krltos's user avatar
  • 213
3 votes
1 answer
5k views

Contextily not showing basemap

I have a geopandas dataframe that contains bus boarding data. I'm trying to display a subset of the data on a plot using a Contextily basemap but the basemap does not appear. I created the geometry ...
gernworm's user avatar
  • 243
2 votes
0 answers
2k views

Contextily Errors Adding a basemap

I can't seem to get a basic basemap background showing from any examples for contextily v 1.0rc2. I'm on python 3.8.0, 32 bit, windows 10. My packages and version are listed at the bottom. It was ...
GIS_py's user avatar
  • 483
1 vote
0 answers
1k views

Python : How to plot a raster .tiff image as lines instead of colours on a map?

On python 3.8.2, Windows 10. I'm currently plotting a monthly mean temperature map from a .tif image on a basemap with the gdal package (see code). I'm following a method that I've seen online. I'...
MorningGlory's user avatar
6 votes
1 answer
2k views

Add WMS to matplotlib Python

Currently I am adding a basemap from stamen.com to my plots as it is explained here: http://geopandas.org/gallery/plotting_basemap_background.html . Is it also possible to load a WMS from another ...
Leo's user avatar
  • 972
1 vote
1 answer
2k views

How to put a Google Map image (or any other map layers) under my UTM cordinates plot uding matplotlib and Python?

I am plotting the route taken by a car on a graph, using matplotlib. I have the cordinates of the car over time and I have extracted them in UTM cordinates (tile 31U). Below are the arrays. x = [...
kiran jayaraj's user avatar
2 votes
2 answers
2k views

Creating equally spaced coordinates on California state map created with basemap?

I have created a California state map with basemap Python library and this shapefile. Code is below from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt fig, ax = plt.subplots(...
Kartikeya Sharma's user avatar
3 votes
1 answer
588 views

Setup shadedrelief background in basemap using a cropped orthographic projection

I'm trying to plot a sector of the world in basemap using an orthographic projection and I would like to have a shadedrelief background. If I don't use shadedrelief everything works fine: import ...
baccandr's user avatar
  • 131
1 vote
1 answer
665 views

Python Basemap: Michigan and Wisconsin coloring problem

I have a dataframe, State, containing state names and counts for each state. I am trying to create a map that colors the states based on the count by using the st99_d00 shapefiles. Here is my code: ...
user's user avatar
  • 13
0 votes
0 answers
340 views

BASEMAP and GDAL data loading error

BASEMAP activities_and_attractions = pd.read_csv("data/activities_and_attractions.csv", encoding="ISO-8859-1") mp = Basemap(resolution='l', llcrnrlon=-150, llcrnrlat=45, urcrnrlon=-110, urcrnrlat=60)...
ZHU's user avatar
  • 121
2 votes
1 answer
1k views

How to map Albers projection raster in Basemap of python?

I confused the setting of Basemap about Alers projection. I want to plot a province area of Nation to pcolormesh. the value of lat_0 and lon_0 is Nation map's center longitude and latitude or this ...
chaobin zhang's user avatar
2 votes
0 answers
2k views

Skewing/rotating a plot in matplotlib.Basemap

I am currently plotting data onto an orthographic projection in matplotlib's Basemap. I would like to rotate or skew the plot to a 23.5 degree angle, corresponding to the Earth's axial tilt. The map ...
Palomar's user avatar
  • 21

15 30 50 per page