hi still whitout any results :(
what i try to do i get coords (x,y) of all polygons...the problem is
that this are 3 polygon in one source row...
http://www.imagehost.ro/pict/2316512147975469a645f.JPG
thx for eny help.
maciek
> Traian Stanev
Here is an excerpt from some C++ code from MapGuide that seems to do something
to that effect. You will need to replicate
The for loop that iterates over the inner rings:
INT32 outerNumRings = 0;
Ptr<MgLinearRing> outerRing = polygon->GetExteriorRing();
// OuterRing
int currentIndex = 0;
Ptr<MgCoordinateIterator> iter = outerRing->GetCoordinates();
int nCoords = CoordinateIteratorToFloatArray(bufferParams, iter, vertices,
currentIndex);
if (nCoords > 0)
{
nPolyVerts[0] = nCoords; // outerRing coordinates
}
INT32 innerNumRings = polygon->GetInteriorRingCount();
// Inner rings
for (int i = 0; i < innerNumRings; i++)
{
Ptr<MgLinearRing> innerRing = polygon->GetInteriorRing(i); // Get Ring
Ptr<MgCoordinateIterator> iter1 = innerRing->GetCoordinates();
nCoords = CoordinateIteratorToFloatArray(bufferParams, iter1, vertices,
currentIndex); // Covert to OpsFloatPoint
if (nCoords > 0)
{
nPolyVerts[i+1] = nCoords;
}
}
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users