Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Cant make ProjToPixel to work how to bypss this error?

$
0
0
Hello dear reader

I am trying to make a tool to calculate the length of a line the user draws on the map but get this error

__Error 1 Overload resolution failed because no accessible 'ProjToPixel' can be called with these arguments:
'Public Function ProjToPixel(env As DotSpatial.Data.Extent) As System.Drawing.Rectangle': Value of type 'Double' cannot be converted to 'DotSpatial.Data.Extent'.
'Public Function ProjToPixel(location As DotSpatial.Topology.Coordinate) As System.Drawing.Point': Value of type 'Double' cannot be converted to 'DotSpatial.Topology.Coordinate'.  D:\C__VISUAL STUDIO\DMC Swing Swung\Form1.vb    1746    30  DMC SWUNG viewer 1.0__
And it happends at this line of code

How do I convert the coordinates in my array to a coordinate for my mapwindow?
 Xstart = myVenster.ProjToPixel(LineaalPuntenLijst(lin).LineaalX)
I make a class of points, where the X and Y of each point is a double...

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>