agrobot_base/Python/map-convert/map-plot.py

11 lines
294 B
Python

import matplotlib.pyplot as plt
import geopandas as gpd
# Carregar o arquivo shapefile contendo a geometria
input_shapefile = 'LineFeature.shp'
data_geometry = gpd.read_file(input_shapefile)
# Plotar as linhas do arquivo shapefile
fig, ax = plt.subplots()
data_geometry.plot(ax=ax)
plt.show()