On Fri, May 27, 2011 at 7:43 AM, Luca Morandini <[email protected]> wrote: > On 05/26/2011 08:45 PM, Rick Wayne wrote: >> Do any of you know a way to make GeoServer do the isoclines? > > Have you already tried the on-the-fly vectorization ? > > http://geo-solutions.blogspot.com/2011/01/developers-corner-have-your-sld.html
Yep, that's what I was about to suggest. There is however a gotcha, the algorithm there won't smooth the contour lines, so if the grid is coarse it will result in isolines with some sharp angles, see for example: http://demo1.geo-solutions.it/playground/GeoSolutions/wms?LAYERS=GeoSolutions%3ADEM_Vulcano%2CGeoSolutions%3ADEM_Vulcano&STYLES=%2Cdem_contour&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=14.912120506292,38.517691856383,14.913429100042,38.518959556579&WIDTH=512&HEIGHT=496 or use this to see it in action dynamically: http://demo1.geo-solutions.it/playground/GeoSolutions/wms?service=WMS&version=1.1.0&request=GetMap&layers=GeoSolutions:DEM_Vulcano,GeoSolutions:DEM_Vulcano&styles=,dem_contour&bbox=14.747,38.336,15.082,38.661&width=512&height=496&srs=EPSG:4326&format=application/openlayers There are also some issues in fully flat areas, yet that should not be too hard to fix. What is hard is post-processing these coarse isolines to smooth them without risking to get them cross each other in areas were the isolines are pretty dense. If you have a nicely working algorithm that can smooth the isolines without ending up having them cross each other I would be happy to have a look at it :-) 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 ------------------------------------------------------- ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
