Take the 2-minute tour ×
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 have a feeling that the answer is going to be 'You can't do that without some very complex coding' but I thought I'd go for it anyway.

I recently asked a question on how to create a Polyline Buffer in OpenLayers, and it worked! Well, almost. In our mapping application Dorset Explorer we have a line measurement tool which works using Geodesic measurements. It had to be like this as non-geodesic resulted in massive errors (I measured it against the 100m running track at my old school and it returned 125m, which I know was wrong!). But simply setting geodesic to True in my OpenLayers measure code fixed this.

I now want to create polyline buffers of a user specified size in my OL Map. I have managed to get it to make a buffer using the answer to my first question, but the size is wrong. In the attached image I requested a 100m buffer around a polyline going from left to right (which is not visible). I then measured the size of the returned buffer (in red) and came up with the result 125 metres.

Requested 100m buffer, got 125m back :(

Not good. I wonder if anyone else out there has attempted to make Geodesic polyline buffers. Even a calculation that would allow the user to put in a 'Geodesic' length and return a 'non-geodesic' length for the buffering tool to use, but I can imagine that this is near impossible. It's driving me slightly nuts, it's so close to working but this rather major issue has stopped it. If you want any more info to help answer or point me in the right direction please let me know.

Thanks!

share|improve this question
add comment

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.