Município de Santos¶
In [1]:
Copied!
import geopandas as gpd
from owslib.wfs import WebFeatureService
import geopandas as gpd
from owslib.wfs import WebFeatureService
In [ ]:
Copied!
wfs = WebFeatureService(url= 'https://egov.santos.sp.gov.br/geoserver/ows', version='2.0.0')
wfs = WebFeatureService(url= 'https://egov.santos.sp.gov.br/geoserver/ows', version='2.0.0')
In [ ]:
Copied!
list_layers = list(wfs.contents)
list_layers.sort()
list_layers
list_layers = list(wfs.contents)
list_layers.sort()
list_layers
In [ ]:
Copied!
# Obter os dados no formato GeoJSON (ou outro formato suportado)
response = wfs.getfeature(
typename='santos:zoneamento_semam',
# bbox=(173700, 440400, 178700, 441400),
# srsname='EPSG:28992'
# srsname='EPSG:4326',
srsname='EPSG:31983',
outputFormat='application/json',
)
response
# Obter os dados no formato GeoJSON (ou outro formato suportado)
response = wfs.getfeature(
typename='santos:zoneamento_semam',
# bbox=(173700, 440400, 178700, 441400),
# srsname='EPSG:28992'
# srsname='EPSG:4326',
srsname='EPSG:31983',
outputFormat='application/json',
)
response
In [ ]:
Copied!
gdf = gpd.read_file(filename=response)
# Results
gdf.info()
gdf.head()
gdf = gpd.read_file(filename=response)
# Results
gdf.info()
gdf.head()
In [ ]:
Copied!
gdf.crs
gdf.crs
In [ ]:
Copied!
gdf.explore()
gdf.explore()
In [ ]:
Copied!