Color ramps with polygons vs raster

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Color ramps with polygons vs raster

Heidi Ochis-2
Can you give a polygon file (values 1 - 50) a graduated color ramp using a class expression?

Heidi
Computer Terrain Mapping, Inc
420 21st Ave, Suite 114
Longmont, CO 80501
303-444-1670





_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Color ramps with polygons vs raster

Jörg Thomsen
Am 07.12.2015 um 23:17 schrieb Heidi Ochis:
> Can you give a polygon file (values 1 - 50) a graduated color ramp using
> a class expression?

more or less, this works:
> CLASS
>   NAME 'roads'
>     STYLE
>       WIDTH 3
>       COLORRANGE 0 0 255 255 0 0   #color start RGB and end RGB
>       DATARANGE 0 50  #the data range is normally set to the class expression range
>       RANGEITEM "maxspeed" # maxspeed­value in osm­dataset
>     END
>   END

Jörg

>
> Heidi
> Computer Terrain Mapping, Inc
> 420 21st Ave, Suite 114
> Longmont, CO 80501
> 303-444-1670
> [hidden email] <mailto:[hidden email]>
>
>
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users