AnsweredAssumed Answered

SpatialDataFrame has been deprecated. Please switch to the GeoAccessor/GeoSeriesAccessor.

Question asked by namf1az on Apr 18, 2020
Latest reply on Apr 18, 2020 by namf1az

How do I rewrite to eliminate warning below?

 

sdf_ = features.SpatialDataFrame(geometry=lines)
print(type(sdf_.spatial))

 

<class 'arcgis.features.geo._accessor.GeoAccessor'>
/Users/zaifmar/anaconda3/lib/python3.7/site-packages/arcgis/features/_data/geodataset/geodataframe.py:221: UserWarning: SpatialDataFrame has been deprecated.  Please switch to the GeoAccessor/GeoSeriesAccessor.   warnings.warn("SpatialDataFrame has been deprecated.  Please switch to the GeoAccessor/GeoSeriesAccessor.")

Outcomes