Skip to content

Commit

Permalink
GeoJSON writer: emit error msg when geometry type is not supported in…
Browse files Browse the repository at this point in the history
… GeoJSON (#4006)
  • Loading branch information
mmomtchev authored Jun 17, 2021
1 parent e9ce2ba commit df70f89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gdal/ogr/ogrsf_frmts/geojson/ogrgeojsonwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,9 +1079,9 @@ json_object* OGRGeoJSONWriteGeometry( const OGRGeometry* poGeometry,
oOptions );
else
{
CPLDebug( "GeoJSON",
"Unsupported geometry type detected. "
"Feature gets NULL geometry assigned." );
CPLError(CE_Failure, CPLE_NotSupported,
"OGR geometry type unsupported as a GeoJSON geometry detected. "
"Feature gets NULL geometry assigned.");
}

if( poObjGeom != nullptr )
Expand Down

0 comments on commit df70f89

Please sign in to comment.