Question, How to draw circle?
Comments
-
In the SDK you would build the list of points for the outer boundary of the circle and create the new area or line feature using GM_AddAreaToVectorLayer or GM_AddLineToVectorLayer. If you want to create a range ring, you could use GM_CalcProjectedLocation to get a point some distance (i.e. the ring radius) from the center point in a particular bearing, then just do different bearings around the circle until you build up a complete point list, then add that as a feature.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
It doesn't work for me if the bearing is not incremented by 1. I have to do a loop from 0 to 360 for the bearing. And then, i calculated the distance. But it is not the number as the input i created
-
You would need to calculate the projected point on the ring edge at a bunch of different bearings, with 1 degree being a good increment. The distance is projected along the ellipsoidal surface of the earth by default, so the great circle distance should match what you specified. Are you not seeing that distance match up (i.e. what is returned by GM_CalcDistance?)?
Thanks,
Mike
Global Mapper Guru
geohelp@bluemarblegeo.com
Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website