[mapserver-users] Clip Raster with a Polygon

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Fri Feb 18 09:32:30 EST 2011


I have done this with static mask images.  It wouldn't be hard to pass the ID of the feature that you want to be the 'hole' in the URL and then use that url variable in an expression for that layer/class .

David.

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka
Sent: Friday, February 18, 2011 6:02 AM
To: Gabe Codina; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Clip Raster with a Polygon

Hi,

I have been thinking sometimes that there could be a huge polygon that is always drawn on top of the raster layer.  'Area of interest' polygons should be converted into holes in the mask polygon.  I have never tried it in practice, though.

-Jukka Rahkonen-

________________________________
Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Gabe Codina
Lähetetty: 18. helmikuuta 2011 7:05
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] Clip Raster with a Polygon
Hi

I would like to serve a raster layer that is spatially filtered - ie the raster should show through where it overlaps with 1 or more polygons.

Is mapserver capable of doing this ?

Gabe Codina

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110218/8c854613/attachment-0001.html


More information about the mapserver-users mailing list