azavea / climate-change-api

Apache License 2.0
0 stars 0 forks source link

Use GeoFeatureModelSerializer for ClimateDataCell serialization #865

Open ddohler opened 5 years ago

ddohler commented 5 years ago

Currently, the ClimateDataCellBaseSerializer relies on a custom ClimateDataCellGeometrySerializer to serialize it as GeoJSON. All other endpoints that serialize points use GeoFeatureModelSerializer to serialize the geometry field directly. Switching the ClimateDataCellBaseSerializer to inherit from GeoFeatureModelSerializer would allow us to eliminate the custom ClimateDataCellGeometrySerializer.