[mapguide-users] Issue in Draw Polygon
JavedPune
jaspune at hotmail.com
Mon Jan 14 06:49:41 EST 2008
Hey
I have found the issue following is the solution
Dim OLinRin As MgLinearRing =
geometryFactory.CreateLinearRing(CoorColl)
Dim pPgon As MgPolygon =
geometryFactory.CreatePolygon(OLinRin, Nothing)
pPgon = CType(pPgon.Transform(GetTransform()), MgPolygon)
Where CoorColl is collection of Co-ordinates
inner ring has to be provided as Nothing
Regards
Javed S
Dim pPgon As MgPolygon = geometryFactory.CreatePolygon(OLinRin, inLnRing)
JavedPune wrote:
>
> Hey,
>
> I am fairly new to the group. This is my first post. I have a issue with
> "Draw polygon".
>
> I am using MapGuide 1.2 when I try to add a polygon by using following
> syntax it does not draw. My outer line is defined for polygon and innear
> line is not required I try to add "null" in .NET language it does not draw
> a polygon for me.
> Dim pPgon As MgPolygon = geometryFactory.CreatePolygon(OLinRin, inLnRing)
> Any help in this matter is appriciated.
> Regards
> Javed
>
--
View this message in context: http://www.nabble.com/Issue-in-Draw-Polygon-tp14790629s16610p14799526.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list