Opened 15 years ago

Closed 15 years ago

#243 closed enhancement (invalid)

a question about the conversion from Geometry* to Polygon*

Reported by: aya Owned by: mloskot
Priority: major Milestone: 3.1.1
Component: Default Version: 3.1.0rc2
Severity: Unassigned Keywords: conversion, Geometry*, Polygon*
Cc:

Description

I use the following function to get the intersection of two polygons which have holes and the value returned is Geometry *.

geos::precision::EnhancedPrecisionOp:: intersection(Poly_A,Poly_B);

If getGeometryTypeId() tells me the geometry returned is a polygon, how can I get a pointer Polygon * from Geometry * safely ? If I convert it directly, is it always safe ?

Thanks.

Change History (3)

comment:1 by mloskot, 15 years ago

Owner: changed from geos-devel@… to mloskot
Status: newassigned

comment:2 by mloskot, 15 years ago

Aya,

This is not a bug report, neither a feature request. This is a question that should go on the mailing list.

Please post this and all further questions to the mailing list (subscribe first, if you haven't yet, at geos-devel) and reserve the Trac for bug reports, enhancements proposals or feature requests, but avoid support-like requests or discussions here. Thank you!

Closing.

comment:3 by mloskot, 15 years ago

Resolution: invalid
Status: assignedclosed
Note: See TracTickets for help on using tickets.