Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I've created a website that uses OpenLayers, MapServer and a SQL2008R2 database. Part of the website allows users to draw polygons to overlay a map of the UK. Ideally, these polygons need to have curved edges, rather than the default 'join-the-dots' straight line between vertices. I've managed to take the locations where the user has clicked, and then joined these dots using a Bezier curve. Initially the polygons look ok, but when the user comes to edit a polygon, there are a massive number of vertices that have been added in order to describe the curved polygon edge:polygon edge

The area within the red oval is where an edit has been made, but as you can see, the edit creates a spike rather than the general reshaping of the polygon. I appreciate I could remove some vertices from the polygon and still have a similar shape, but overall the same problem remains.

Are there any additional libraries I could implement that cope better with curved polygons? Are there any alternatives of the software involved in terms of MapServer and OpenLayers that I should consider that handle curves straight out of the box? I've searched this site and not come across any alternatives. I found today that SQL Server 2012 has some curve functionality included, but this would still give me the same problem (I think) in terms of visualising and editing polygons using OpenLayers.

If any further info is needed, just let me know.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.