ASP.NET / C# - Read DB and apply coordinates to picture

VinylxScratches

Golden Member
Feb 2, 2009
1,666
0
0
Hello,

This is an idea I had for my work. I'd like to create a site that has conference room names coordinated on a map that's dynamic. I would read a MySQL database that would plot the conference room on a png somehow . Is there any API that can help do this?
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
13
81
www.markbetz.net
It's kind of a broad question. A MySQL database can't plot points on images, but it can store the coordinates of points. If you had something like maps of the floors of a building as images, and you assigned some coordinate system that you could use to specify the locations of meeting rooms, then you could store the definitions of those rooms in the database, with links to schedules, current occupants, whatever. You could read that crap out of the db and present it to a user graphically in a number of ways. In .NET there are some pretty easy ways to manipulate images, but I'm not sure what platform you're using.
 

VinylxScratches

Golden Member
Feb 2, 2009
1,666
0
0
Yes that's along the lines of what I was thinking. What do you mean by platform? I would be using Visual Studio 2010 and the latest .NET.
 

WannaFly

Platinum Member
Jan 14, 2003
2,811
1
0
Your description is kind of vague - but I agree with mark, it sounds like it'd be better to start out with a floor plan and draw dynamically on top of that. To draw the layouts of the rooms would be a bit more complicated.

.NET has a built in graphics library that makes creating/editing images pretty easy.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
13
81
www.markbetz.net
Yes that's along the lines of what I was thinking. What do you mean by platform? I would be using Visual Studio 2010 and the latest .NET.

Yeah, that's what I meant by platform. So check out the System.Windows.Media.Imaging namespace. You'll have to do some Googling around, but I think everything you need is in there.

If it's a desktop application then you can read in the base map image, draw whatever you want on it, and then stuff it into an image control.

If it's a web application you have some other options, and some things get a little more complex.
 

KIAman

Diamond Member
Mar 7, 2001
3,342
23
81
Interesting... I have this exact project coming up for one of my side work consulting. Are you competing with me?!? LOL.

Anyways, I'm doing mine with MSSQL 2008 backend using VS 2010. I'm making my own "api" from scratch using WCF. I use the pixels/configurablesizedivider for the coordinate system.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |