Jump to content
Sign in to follow this  
ahuimanu

Mapping with GDI+?

Recommended Posts

Hey Ahuimanu,In order to do vector plots of Lat/Long type data, you basically need a projection system to convert from Lat/Long into pixels based on various other map view parameters (things like center location, zoom level, etc). There are a whole bunch of different ways to do map projections (do a google search on map projections and I bet you find a bunch :->).There are probably some freeware/shareware modules out there that will do this sort of thing, but I don't know of any off the top of my head (check out http://www.gotdotnet.com and/or http://www.codeproject.com as a couple of good starting points to search for modules that might relate to what you want to do).I've done some similar type stuff in C#/.Net/GDI+ to display data from the US Census TigerLINE dataset, and most of my performance problems have to do with handling the database itself, swapping new stuff into memory as the map location moves and dumping the old stuff, the drawing code seems to be fast enough :->.Tim

Share this post


Link to post
Share on other sites

Hi Beatle,Well, I understand projections in terms of Lambert Conformal, Mercator, etc. but I think you are suggesting that I perhaps make my own? I suppose you mean that I have to determine what area a pixel represents. I'll explore the repositories you suggest. There is also http://www.sharpgis.net, but I suppose I was after trying to learn the concepts myself.Thanks for the feedback... :-)


Jeff Bea

I am an avid globetrotter with my trusty Lufthansa B777F, Polar Air Cargo B744F, and Atlas Air B748F.

Share this post


Link to post
Share on other sites

>>> Can you point me in the right direction? I know that there are method calls to do all of this in System.Drawing, but I am not sure how to use them correctly...Hey there... I will try to get back to you on this (been caught up at work this week). I do not use the built in transforms anymore because they produce some unwanted side effects for maps. However, it is still important to understand 2D Transformation theory and matrix algebra. This is the critical math of map rendering. Here is a good starting point:http://www.willamette.edu/~gorr/classes/Ge...ransforms2d.htmAlso Google "2D Transformations".The transforms should make more sense after reading about this stuff.

Share this post


Link to post
Share on other sites

thanks...reading.


Jeff Bea

I am an avid globetrotter with my trusty Lufthansa B777F, Polar Air Cargo B744F, and Atlas Air B748F.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...