[geos-devel] [GEOS] #243: a question about the conversion from
Geometry* to Polygon*
GEOS
geos-trac at osgeo.org
Wed Mar 25 05:10:24 EDT 2009
#243: a question about the conversion from Geometry* to Polygon*
-------------------------+--------------------------------------------------
Reporter: aya | Owner: geos-devel at lists.osgeo.org
Type: enhancement | Status: new
Priority: major | Milestone: 3.1.1
Component: Default | Version: 3.1.0rc2
Severity: Unassigned | Keywords: conversion, Geometry*, Polygon*
-------------------------+--------------------------------------------------
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.
--
Ticket URL: <http://trac.osgeo.org/geos/ticket/243>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list