<div>Great Gavin, works like a charm!</div>
<div>Piet<br>&nbsp;</div>
<div><font size="2">
<p>FdoIDirectPosition* dpStart = factory-&gt;CreatePositionXY(mCoordinates[0].x, mCoordinates[0].y);</p>
<p>FdoIDirectPosition* dpMid = factory-&gt;CreatePositionXY(mCoordinates[1].x, mCoordinates[1].y);</p>
<p>FdoIDirectPosition* dpEnd = factory-&gt;CreatePositionXY(mCoordinates[2].x, mCoordinates[2].y);</p>
<p>FdoPtr&lt;FdoICircularArcSegment&gt; circularArc = factory-&gt;CreateCircularArcSegment(dpStart, dpMid, dpEnd);</p>
<p>FdoPtr&lt;FdoCurveSegmentCollection&gt; curveSegments = FdoCurveSegmentCollection::Create();</p>
<p>curveSegments-&gt;Add(circularArc);</p>
<p>FdoPtr&lt;FdoICurveString&gt; curveStrings = factory-&gt;CreateCurveString(curveSegments);</p>
<p></p>
<p></p></font><font color="#0000ff" size="2">return</font><font size="2"> factory-&gt;GetFgf(curveStrings);</font>
<p><font size="2">&nbsp;</font></p></div>
<div><span class="gmail_quote">On 10/1/07, <b class="gmail_sendername">Gavin Cramer</b> &lt;<a href="mailto:gavin.cramer@autodesk.com">gavin.cramer@autodesk.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello, Piet.<br><br>Arcs can only appear as curve segments.&nbsp;&nbsp;They do not actually derive<br>from FdoIGeometry.&nbsp;&nbsp;To get an FdoIGeometry from an arc, add the
<br>FdoICircularArcSegment to an FdoCurveSegmentCollection and then create a<br>FdoICurveString.&nbsp;&nbsp;FdoICurveString is derived from FdoIGeometry.&nbsp;&nbsp;The<br>unit tests have some examples of this, e.g. see CreateCurveString() in
<br>GeometryTest.cpp.<br><br>If you are trying to involve the arc in a polygon rather than a curve,<br>you can use the FdoCurveSegmentCollection to create an FdoIRing instead.<br>One or more FdoIRing values can be use to create an FdoICurvePolygon.
<br><br>Gavin<br><br><br><br>-----Original Message-----<br>From: <a href="mailto:fdo-users-bounces@lists.osgeo.org">fdo-users-bounces@lists.osgeo.org</a><br>[mailto:<a href="mailto:fdo-users-bounces@lists.osgeo.org">fdo-users-bounces@lists.osgeo.org
</a>] On Behalf Of Piet Bibber<br>Sent: Monday, October 01, 2007 7:37 AM<br>To: <a href="mailto:fdo-users@lists.osgeo.org">fdo-users@lists.osgeo.org</a><br>Subject: [fdo-users] Using CircularArc in NEN1878 provider<br><br>
<br>Hey,<br><br>The NEN1878 provides info as a CircularArc. I&#39;m capabale of creating a<br>FdoICircularArcSegment, but have difficulties returning the IGeometry*<br>for<br>it (or the FdoByteArray*).<br><br>Question: How do I convert a FdoICircularArcSegment into a FdoIGeometry*
<br>or<br>FdoByteArray*? (for usage in the readers GetGeometry function)<br><br>Note: Turning the FdoICircularArcSegment into Geometry via Envelope<br>doesn&#39;t<br>seem to work; or returning the 3 points as part of a CurveString. (But I
<br>might be overlooking something)<br><br>Thanks in advance<br>Piet<br>--<br>View this message in context:<br><a href="http://www.nabble.com/Using-CircularArc-in-NEN1878-provider-tf4547783s18">http://www.nabble.com/Using-CircularArc-in-NEN1878-provider-tf4547783s18
</a><br>162.html#a12977578<br>Sent from the fdo-users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>fdo-users mailing list<br><a href="mailto:fdo-users@lists.osgeo.org">
fdo-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/fdo-users">http://lists.osgeo.org/mailman/listinfo/fdo-users</a><br><br>_______________________________________________<br>fdo-users mailing list
<br><a href="mailto:fdo-users@lists.osgeo.org">fdo-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/fdo-users">http://lists.osgeo.org/mailman/listinfo/fdo-users</a><br></blockquote></div><br>