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

11 lines
294 B
Python
Raw Permalink Normal View History

2023-12-06 13:04:54 +00:00
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()