Envelope function

Topics: Español, SharpMap Project, SharpMap v0.9 / v1.x
Aug 28, 2009 at 3:45 PM

Hi guys!

Im tring to get the limit coordinates for a LineString geometry... I tried to use the envelope function to get the top, bottom, right and left limit coordinates... But this function returns me a geometry ... Is there another function to get the bounding box for this type of geometry?

Code:

Dim vectLine As New SharpMap.Geometries.LineString(PointCollLine)

MsgBox(vectLine.Envelope().ToString)

The idea is to make a zoomToBox to this especific LineString geometry. Any ideas?

Thx in advance

Mr,Musso

 

Aug 28, 2009 at 4:14 PM

NEVER MIND IT WAS A DUMB QUESTION!

GETBOUNDINGBOX FUNCTION DID THE TRICK JEJEJE

SRY ABOUT THAT

Mr.Musso

 

Aug 29, 2009 at 10:34 AM

the envlope function have top bottom left and right

for sample

layer.Envelope.Bottom

layer.Envelope.top

or

layer.Envelope.topLeft

layer.Envelope.topRight