[mapserver-users] 3D Building Howto?

Stephen Woodbridge woodbri at swoodbridge.com
Mon Feb 14 19:38:41 EST 2011


Steve,

I like this idea. I opened an enhancement request against 6.0, I realize 
it probably will not make the freze, so push it to future or whatever.

http://trac.osgeo.org/mapserver/ticket/3678

-Steve W

On 2/14/2011 6:34 PM, Lime, Steve D (DNR) wrote:
> Maybe this is a GEOMTRANSFORM function in 6.0 speak? You could do
> something like:
>
> GEOMTRANSFORM (extrude(some view parameters, [height]))
>
> Where the first few arguments define a view position and the last
> argument is height. Neat thing about this approach that height could
> be a constant or a bound to an attribute. The extrude function would
> generate the sides, top and bottom based on view parameters and a
> height. It could even (perhaps) create multiple features mirrored on
> the outline but with extended attributes that would define things
> like top vs. side vs. bottom, or whether a facet side is visible or
> not.
>
> If done outside of STYLEs (e.g. a layer-level GEOMTRANSFORM) then one
> could draw things differently based on these pseudo attributes (e.g.
> if a side and visible do this).
>
> Steve
>
> -----Original Message----- From:
> mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen
> Woodbridge Sent: Monday, February 14, 2011 5:12 PM To:
> mapserver-users Subject: [mapserver-users] 3D Building Howto?
>
> Hi all,
>
> Has anyone been able to render 3D building with mapserver?
>
> I have a polygon layer with the building outlines and a height
> attribute.
>
> Any thoughts on how to render nice buildings like Google does?
>
> I can preprocess the data and extrude it into 3D shapes, but I'm not
> sure that gets me anywhere.
>
> My one thought was to draw the polygon, then draw it again with an
> xy offset based on a function of the height. But this does not
> generate the vertical edges of the building.
>
> I suppose I could generate all the vertical faces and the top of the
> build and then sort them all based on the z value of the centroid. I
> could event remove all the back facing polygons faces.
>
> It would be cool if mapserver had:
>
> LAYER TYPE POLYGON3D HEIGHT [height] ... END
>
> Thoughts? -Steve W _______________________________________________
> 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