[mapserver-users] Pseudo-3D buildings

Basques, Bob (CI-StPaul) bob.basques at ci.stpaul.mn.us
Wed Sep 25 07:35:49 PDT 2013


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-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort
Sent: Wednesday, September 25, 2013 8:22 AM
To: Rahkonen Jukka
Cc: Mapserver-Users (mapserver-users at 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.rahkonen at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users





More information about the MapServer-users mailing list