[MS4W-Users] Problem using a feature attribute from an OGR file
Jeff McKenna
jmckenna at gatewaygeomatics.com
Fri Mar 17 08:11:27 EDT 2017
On 2017-03-17 9:03 AM, Gillis, Allan via MS4W-Users wrote:
>
>
>
> LAYER
>
> NAME "DEPCNT_US1GC09M"
>
> TYPE LINE
>
> DUMP true
>
> TEMPLATE fooOnlyForWMSGetFeatureInfo
>
> EXTENT -98.15 17.738333 -76.083333 33.633333
>
> METADATA
>
> 'ows_title' 'DEPCNT_US1GC09M'
>
> END #metadata"
>
> STATUS ON
>
> CONNECTIONTYPE OGR
>
> CONNECTION "./s57/US1GC09M.000"
>
> #DATA "SELECT VALDCO FROM DEPCNT WHERE OGR_GEOMETRY='LINESTRING'"
>
> DATA DEPCNT
>
> #PROCESSING "NATIVE_FILTER=PRIM=2" # Select only linestrings
>
> #PROCESSING "LABEL_NO_CLIP=ON"
>
> TRANSPARENCY 100
>
> PROJECTION
>
> 'proj=longlat'
>
> 'datum=WGS84'
>
> 'no_defs'
>
> END #projection
>
> CLASSITEM 'VALDCO'
>
> CLASS
>
> NAME '0.000 < VALDCO < 20'
>
> EXPRESSION ( ([VALDCO] >= 0.000) AND ([VALDCO] <= 20.0) )
>
> DEBUG TRUE
>
> NAME 'DEPCNT'
>
> STYLE
>
> WIDTH 0.91
>
> COLOR 0 170 255
>
> END #style
>
> LABEL
>
> TEXT "20"
>
> SIZE 10
>
> COLOR 255 0 0
>
> ANGLE FOLLOW
>
> POSITION AUTO
>
> FORCE TRUE
>
> ANTIALIAS TRUE
>
> END #label
>
> END #class
>
> CLASS
>
> NAME '20.000 < VALDCO < 50'
>
> EXPRESSION ( ([VALDCO] > 20.000) AND ([VALDCO] <= 50.0) )
>
> DEBUG TRUE
>
> NAME 'DEPCNT'
>
> STYLE
>
> WIDTH 0.91
>
> COLOR 0 170 255
>
> END #style
>
> LABEL
>
> TEXT "50"
>
> SIZE 10
>
> COLOR 255 0 0
>
> ANGLE FOLLOW
>
> POSITION AUTO
>
> FORCE TRUE
>
> ANTIALIAS TRUE
>
> END #label
>
> END #class
>
> CLASS
>
> NAME '50.000 < VALDCO < 100'
>
> EXPRESSION ( ([VALDCO] > 50.000) AND ([VALDCO] <= 100.0) )
>
> DEBUG TRUE
>
> NAME 'DEPCNT'
>
> STYLE
>
> WIDTH 0.91
>
> COLOR 0 170 255
>
> END #style
>
> LABEL
>
> TEXT "100"
>
> SIZE 10
>
> COLOR 255 0 0
>
> ANGLE FOLLOW
>
> POSITION AUTO
>
> FORCE TRUE
>
> ANTIALIAS TRUE
>
> END #label
>
> END #class
>
> END #layer DEPCNT_US1GC09M
>
>
>
> *From:*MS4W-Users [mailto:ms4w-users-bounces at lists.ms4w.com] *On Behalf
> Of *Gillis, Allan via MS4W-Users
> *Sent:* March 17, 2017 7:38 AM
> *To:* ms4w-users at lists.ms4w.com
> *Cc:* Gillis, Allan
> *Subject:* Re: [MS4W-Users] Problem using a feature attribute from an
> OGR file
>
>
Thanks for now sharing your NOAA layer definition, will give it a try here.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
More information about the MS4W-Users
mailing list