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

Crispin_at_1Spatial crispin.hoult at 1spatial.com
Thu Mar 4 04:28:44 EST 2010


... you would have thought so, but no.  It may be my compiler settings but
VS2008 on .net throws this error for FDO 3.3 and 3.4 when using the []
indexing:

    Cannot apply indexing with [] to an expression of type
'OSGeo.FDO.Geometry.IMultiLineString'

 Crispin



Romica Dascalescu wrote:
> 
> 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.
> 

-- 
View this message in context: http://n2.nabble.com/FDO-3-5-Extract-Geom-from-Multi-in-NET-tp4660232p4673215.html
Sent from the FDO Internals mailing list archive at Nabble.com.


More information about the fdo-internals mailing list