Keywords: save polygon database suggestion howto
Hey!
I did a search but found nothing on this subject so I thought I post it =)
I'd like to know how you can save a polygon/point to database for later retrieval. Let's say a user draws a polygon over a certain area - I want that polygon to be saved somewhere and whenever someone navigates to the same area on the map the shape previously drawn and added should be shown there again - not just for the user who created it.
What is the best and/or easiest way to do this? In our current solution (not using ThinKGeo) we use Points to define the polygon. These Points are saved to the database, two Doubles for each Point, and saved as Binary data in an SQL-database. When we start the application all the polygons are retrieved; the Points are re-created using the Doubles and then a polygon is created using those Points.
Is there a way to easy get binary data for a shape/polygon/point in Map Suite that was drawn by the user, save it and then re-draw it for whoever navigates the map?
Regards