[fdo-users] Is CurvePolygon implemented?

Steve Stanton sstanton at btinternet.com
Sat Feb 12 16:17:43 EST 2011


Hi Gavin,

Thanks, I should have thought of that!

I was calling FgfGeometryFactory.CreateCurvePolygon with a null interior ring collection (for polygons with no interior rings). It expects an empty collection (meanwhile FgfGeometryFactory.CreatePolygon does accept null for the interior ring collection).

Steve

--- On Sat, 12/2/11, Gavin Cramer <gavin.cramer at autodesk.com> wrote:

> From: Gavin Cramer <gavin.cramer at autodesk.com>
> Subject: RE: [fdo-users] Is CurvePolygon implemented?
> To: "FDO Users Mail List" <fdo-users at lists.osgeo.org>
> Date: Saturday, 12 February, 2011, 1:03
> It is implemented.  Does your
> list of interior rings contain any NULL values?
> 
> Gavin
> 
> 
> -----Original Message-----
> From: fdo-users-bounces at lists.osgeo.org
> [mailto:fdo-users-bounces at lists.osgeo.org]
> On Behalf Of Steve Stanton
> Sent: Friday, February 11, 2011 7:20 PM
> To: fdo-users at lists.osgeo.org
> Subject: [fdo-users] Is CurvePolygon implemented?
> 
> I'm trying to export some cadastral polygons to SDF, and
> quite a few of them contain circular arcs. I initially
> approximated these arcs with some closely spaced points, and
> successfully created IPolygon objects.
> 
> Then I discovered ICurvePolygon, which would let me export
> the arcs without any approximation. But when I try to call
> FgfGeometryFactory.CreateCurvePolygon, it just comes back
> with a null reference exception. The stack trace:
> 
>    at
> OSGeo.FDO.Runtime.Disposable.get_UnmanagedObject()
>    at
> OSGeo.FDO.Geometry.RingCollection.GetImpObj()
>    at
> OSGeo.FDO.Geometry.FgfGeometryFactory.CreateCurvePolygon(IRing
> exteriorRing, RingCollection interiorRings)
>    at
> Backsight.Editor.SdfExporter.ExportCurvePolygon(Polygon pol)
> in
> C:\Users\sstanton\Code\Backsight.Editor\SdfExporter.cs:line
> 182
> 
> I also tried it with the SQLite provider, and got the same.
> Should I take this to mean that CurvePolygon isn't
> supported?
> 
> Steve



More information about the fdo-users mailing list