locked
Load WKT (polygon) in Windows form RRS feed

  • Question

  • Hi,

    Is is possible to load a polygon (in WKT format) inside a windows form control (e.g., panel)?  Or do I have to use Bing/Google API to do this?

    Thanks for any advice.


    Marilyn Gambone
    Friday, September 16, 2011 2:15 AM

Answers

  • Loading a polygon in WKT format is dead easy - it's just a simple text string.

    If you mean how to display a polygon that has been loaded from text - embedding a Bing Maps control in the Windows Form is one option (although note that Bing/Google Maps don't directly support WKT - you'll have to covert to a Microsoft.Maps.Polygon instance first). Also check out libraries like http://sharpmap.codeplex.com


    twitter: @alastaira blog: http://alastaira.wordpress.com/
    • Marked as answer by deskcheck1 Friday, September 16, 2011 12:50 PM
    Friday, September 16, 2011 6:54 AM
    Answerer

All replies

  • Loading a polygon in WKT format is dead easy - it's just a simple text string.

    If you mean how to display a polygon that has been loaded from text - embedding a Bing Maps control in the Windows Form is one option (although note that Bing/Google Maps don't directly support WKT - you'll have to covert to a Microsoft.Maps.Polygon instance first). Also check out libraries like http://sharpmap.codeplex.com


    twitter: @alastaira blog: http://alastaira.wordpress.com/
    • Marked as answer by deskcheck1 Friday, September 16, 2011 12:50 PM
    Friday, September 16, 2011 6:54 AM
    Answerer
  • Hi,

    Thanks for the info.  This helps.


    Marilyn Gambone
    Friday, September 16, 2011 12:50 PM