Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

geopandas plot raster and vector

import geopandas
import matplotlib.pyplot as plt
import rasterio
import rasterio.plot

countries = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres'))
raster = rasterio.open("NE1_50M_SR_W/NE1_50M_SR_W.tif")

fig, ax = plt.subplots(figsize=(15, 15))
rasterio.plot.show(raster, ax=ax)
countries.plot(ax=ax, facecolor='none', edgecolor='red')
Comment

PREVIOUS NEXT
Code Example
Python :: preprocessing image (pixel to vector conversion) 
Python :: how to clear formatting in python 
Python :: python backtest 
Python :: numpy.floor_divide() in Python 
Python :: pandas assign multiple columns 
Python :: metros para cm para mm 
Python :: Uploading small amounts of data into memory 
Python :: self argument in python 
Python :: reverse color matplotlib 
Python :: how i make viribal inside a string in python 
Python :: django muti user for 3 users 
Python :: mlpclassifier check weights 
Python :: Python - Perl - Tcl 
Python :: python list chunks using yield 
Python :: Dizideki en son elemani alma 
Python :: create date range python 
Python :: dataframe no names from file 
Python :: animal quiz game in python 
Python :: is dictreader scoped in python 
Python :: File "demo_indentation_test.py", line 2 print("Five is greater than two!") ^ IndentationError: expected an indented block 
Python :: deepface facebook python 
Python :: pip unknown command import 
Python :: python xlrd date 
Python :: dashes in python packages 
Python :: Python Syntax of for Loop 
Python :: python reverse list every 2 element 
Python :: prevent not admin from visiting a url tornado python 
Python :: winwin 
Python :: deoplete 
Python :: python gambling machine 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =