Re: [mapserver-users] Pseudo-3D buildings
CLASS STYLE COLOR _building_clr OUTLINECOLOR _building_ol_clr WIDTH 1 GEOMTRANSFORM (buffer([shape],2)) END STYLE COLOR 255 0 0 OPACITY 25 END STYLE COLOR _building_clr OUTLINECOLOR _building_ol_clr WIDTH 1 OFFSET 3 3 END END works for me ... On 25 September 2013 14:44, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, See these buildings which Andrei Nacu has drawn with OpenJUMP http://img855.imageshack.us/img855/8340/b072.png Buildings are constructed from 3 layers: - OSM building polygons (orange) - underneath them buffered polygons (buffer 2, round join) with dark grey outline and light grey fill - above a copy of the building polygons with offsets dx=3 , dy=3, again with dark grey outline and light grey fill I would like to see mapserver CLASS which gives the same result. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Pseudo-3D buildings
On 25 September 2013 16:35, Basques, Bob (CI-StPaul) bob.basq...@ci.stpaul.mn.us wrote: Hmmm, can the OFFSET values be database driven to fake heights of buildings? Talking to myself here, I could even make a building shadow too with another STYLE . . . . no it is not data driven Actually, I guess a better question is, can any value anywhere in the MAPFILE be data driven, or is OFFSET not capable? Didn't there used to be some values that couldn't be passed in this manner? all data driven STYLE members have been added by hand when there was a need for them. adding a new one (e.g. offset) is a relatively easy patch to implement Bobb -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of thomas bonfort Sent: Wednesday, September 25, 2013 8:22 AM To: Rahkonen Jukka Cc: Mapserver-Users (mapserver-users@lists.osgeo.org) Subject: Re: [mapserver-users] Pseudo-3D buildings CLASS STYLE COLOR _building_clr OUTLINECOLOR _building_ol_clr WIDTH 1 GEOMTRANSFORM (buffer([shape],2)) END STYLE COLOR 255 0 0 OPACITY 25 END STYLE COLOR _building_clr OUTLINECOLOR _building_ol_clr WIDTH 1 OFFSET 3 3 END END works for me ... On 25 September 2013 14:44, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, See these buildings which Andrei Nacu has drawn with OpenJUMP http://img855.imageshack.us/img855/8340/b072.png Buildings are constructed from 3 layers: - OSM building polygons (orange) - underneath them buffered polygons (buffer 2, round join) with dark grey outline and light grey fill - above a copy of the building polygons with offsets dx=3 , dy=3, again with dark grey outline and light grey fill I would like to see mapserver CLASS which gives the same result. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Pseudo-3D buildings
Hmmm, can the OFFSET values be database driven to fake heights of buildings? Talking to myself here, I could even make a building shadow too with another STYLE . . . . Actually, I guess a better question is, can any value anywhere in the MAPFILE be data driven, or is OFFSET not capable? Didn't there used to be some values that couldn't be passed in this manner? Bobb -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of thomas bonfort Sent: Wednesday, September 25, 2013 8:22 AM To: Rahkonen Jukka Cc: Mapserver-Users (mapserver-users@lists.osgeo.org) Subject: Re: [mapserver-users] Pseudo-3D buildings CLASS STYLE COLOR _building_clr OUTLINECOLOR _building_ol_clr WIDTH 1 GEOMTRANSFORM (buffer([shape],2)) END STYLE COLOR 255 0 0 OPACITY 25 END STYLE COLOR _building_clr OUTLINECOLOR _building_ol_clr WIDTH 1 OFFSET 3 3 END END works for me ... On 25 September 2013 14:44, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, See these buildings which Andrei Nacu has drawn with OpenJUMP http://img855.imageshack.us/img855/8340/b072.png Buildings are constructed from 3 layers: - OSM building polygons (orange) - underneath them buffered polygons (buffer 2, round join) with dark grey outline and light grey fill - above a copy of the building polygons with offsets dx=3 , dy=3, again with dark grey outline and light grey fill I would like to see mapserver CLASS which gives the same result. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users