Community of VE/MapPoint Users and Developers
This is a discussion on Shape coordinates within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I need to retreive the latitude and longitude coordinates of the corners of a shape (rectangle). The way that Ive ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Shape coordinates Im sure someone has already done this. Please help. |
| |||
|
Ive been messing around and Ive found my problem. The centre point of the shape is given as a location that when converted into XY coordinates gives the pixel position. The width and height of the shape are masured in GeoUnits (km/miles). So how do I find a location that is exactly x miles east and y miles north of another location. |
| |||
|
Hi, Thanks for feedback. It can benefit others too
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Shape coordinates
Rushmore, What can't you get it work? Be more specific please. Maybe this is your solution: * Create a rectangular shape * Select it * Call the selected area (which is the selected rectangular) * Get its top/left area (which is in pixels) * Get its width/height (which is also in pixels) * Calculate its angle positions of the rectangle (which is also the selected area) and ofcourse these are all in pixels * Than convert them to Lon/Lat, there is a function for it. * Voila, you're done! I hope that's your solution and I also hope next time you wil help me too |
| |||
| Re: Shape coordinates Quote:
I am using C# VS 2005 and Mappoint 2006. |
| |||
| Re: Shape coordinates
Rushmore, If you created a SelectedArea object, doesn't mean you have all the content in it. It is just an object you created, with nothin assigned to it, thus all the propperty's are ofcourse zero or empty. What you have to do is something like this in C#: Code: SelectedArea oSel; oSel = Mappoint.SelectedArea; /* Than do the things you want */ long /*double*/ width = oSel.width; //etc...... |
| |||
| Re: Shape coordinates
Hi, I'm not sure if I understeand it right. A selected shape is not a selected area. A selected area is when you draw an area on the map using the mouse, like when you have to zoom in to an area. From this area you can create the shape. Is that what you want ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Shape coordinates Quote:
I need only the four locations (of the shape) to select the hydrants from the database. But how? Thank you. |
![]() |
| Tags |
| coordinates, shape |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does an object reside in my Shape or Shape boundaries? | hotrdd | MapPoint 2006/2009 Discussion | 1 | 08-04-2005 10:51 PM |
| Getting the coordinates from a freeform shape | pst | MapPoint 2006/2009 Discussion | 5 | 07-14-2005 08:19 AM |
| Coordinates of regular shape | Dazzer | MapPoint 2006/2009 Discussion | 1 | 04-08-2005 09:15 AM |
| I need some coordinates | Anonymous | MapPoint 2006/2009 Discussion | 0 | 03-25-2004 11:56 AM |
| Get coordinates in C# | Anonymous | MapPoint 2006/2009 Discussion | 3 | 10-31-2003 08:11 AM |