On Thu, Aug 4, 2011 at 4:40 PM, Ricardo Bayley <[email protected]> wrote: > Hi folks, > Does anybody know if there is a way calculating the parallel offset of a > Line Geometry ? > Just using the offset function will only work for straight lines which are > either vertical or horizontal. > Any ideas ? > Would it better be to calculate them Externally ?
Computing an offset line seems simple, but it's actually a seriously hard problem. Both GRASS and MapServer have some algorithm, but they fail egregiously in case you have sharp angles or very short segments compared to the offset distance. I could not find an open source implementation that works properly, but if you find one I'd be happy to have a look at it. And oh, no, we don't have such function, I've tried to implement one in the past but could not get it to work properly beyond the simple cases. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
