Skip to content

Commit

Permalink
Merge pull request #1 from RizkiAlhamid/flatgeobuf-multilinestring-re…
Browse files Browse the repository at this point in the history
…ad-fix

fix fgb read_geometry (MultiLineString) bug
  • Loading branch information
RizkiAlhamid authored Jun 20, 2024
2 parents e11583d + e806fdf commit c429468
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flatgeobuf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ drawvec readGeometry(const FlatGeobuf::Geometry *geometry, FlatGeobuf::GeometryT

if (geometry_type == FlatGeobuf::GeometryType_Point) {
return readPoints(geometry);
} if (geometry_type == FlatGeobuf::GeometryType_MultiPoint) {
} else if (geometry_type == FlatGeobuf::GeometryType_MultiPoint) {
return readPoints(geometry);
} if (geometry_type == FlatGeobuf::GeometryType_LineString) {
} else if (geometry_type == FlatGeobuf::GeometryType_LineString) {
return readLinePart(geometry);
} else if (h_geometry_type == FlatGeobuf::GeometryType_MultiLineString) {
} else if (geometry_type == FlatGeobuf::GeometryType_MultiLineString) {
return readLinePart(geometry);
} if (geometry_type == FlatGeobuf::GeometryType_Polygon) {
} else if (geometry_type == FlatGeobuf::GeometryType_Polygon) {
return readLinePart(geometry);
} else if (geometry_type == FlatGeobuf::GeometryType_MultiPolygon) {
// if it is a GeometryCollection, parse Parts, ignore XY
Expand Down

0 comments on commit c429468

Please sign in to comment.