[fdo-internals] Re: FDO 3.5 Extract Geom from Multi in .NET?

Romica Dascalescu Romica.Dascalescu at autodesk.com
Wed Mar 3 17:17:45 EST 2010


I think even in 3.3/3.4 this[int32] should be available...
Changing your code like below should work even for 3.3

fgfMLine = (OSGeo_FDO_Geometry.IMultiLineString)geometry;
for (int iMultiLine = 0; iMultiLine < fgfMLine.Count; iMultiLine++)
{
        fgfLine = fgfMLine[iMultiLine];
}

Romy.
________________________________________
From: fdo-internals-bounces at lists.osgeo.org [fdo-internals-bounces at lists.osgeo.org] On Behalf Of Greg Boone
Sent: Wednesday, March 03, 2010 4:35 PM
To: FDO Internals Mail List
Subject: RE: [fdo-internals] Re: FDO 3.5 Extract Geom from Multi in .NET?

Yes, I think so.

-----Original Message-----
From: fdo-internals-bounces at lists.osgeo.org [mailto:fdo-internals-bounces at lists.osgeo.org] On Behalf Of Crispin_at_1Spatial
Sent: Tuesday, March 02, 2010 7:44 AM
To: fdo-internals at lists.osgeo.org
Subject: [fdo-internals] Re: FDO 3.5 Extract Geom from Multi in .NET?


OK,

So it looks like because I use the same code to compile for versions from
FDO 3.3 to 3.5 I need to use some preprocessor conditional wraps in a couple
of places... eg below.  Does this seem reasonable?

 C


fgfMLine = (OSGeo_FDO_Geometry.IMultiLineString)geometry;
for (int iMultiLine = 0; iMultiLine < fgfMLine.Count; iMultiLine++)
{
#if FDO35
        fgfLine = fgfMLine[iMultiLine];
#else
        fgfLine = fgfMLine.get_Item(iMultiLine);
#endif

--
View this message in context: http://n2.nabble.com/FDO-3-5-Extract-Geom-from-Multi-in-NET-tp4660232p4660747.html
Sent from the FDO Internals mailing list archive at Nabble.com.
_______________________________________________
fdo-internals mailing list
fdo-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-internals
_______________________________________________
fdo-internals mailing list
fdo-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-internals


More information about the fdo-internals mailing list