Opened 17 years ago

Closed 17 years ago

#1686 closed enhancement (fixed)

Compute and return the area GeometryCollection or issue an error

Reported by: Ari Jolma Owned by: Mateusz Łoskot
Priority: normal Milestone: 1.5.0
Component: OGR_SF Version: unspecified
Severity: normal Keywords:
Cc: warmerdam

Description

OGR_G_GetArea( OGRGeometryH hGeom ) in ogr_api.h silently ignores other geometry types than OGRLinearRing, OGRPolygon or OGRMultiPolygon. It should at least issue a warning. Computing the area of a GeometryCollection for example would be simple.

Attachments (1)

gdal_svn_trunk_geometry_collection_get_area_bug1686.patch (3.1 KB ) - added by Even Rouault 17 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by warmerdam, 17 years ago

Cc: warmerdam added
Component: defaultOGR_SF
Milestone: 1.5.0
Owner: changed from warmerdam to Mateusz Łoskot

Please implement in trunk as time permits.

comment:2 by Mateusz Łoskot, 17 years ago

Status: newassigned

comment:3 by Even Rouault, 17 years ago

I'm suggesting the attached patch.

comment:4 by hobu, 17 years ago

Resolution: fixed
Status: assignedclosed

patch applied in r12428

Note: See TracTickets for help on using tickets.