Layer Property Editor

Parent Previous Next

Property Editor - Layer Object


The Layer Property Editor provides controls to set the properties of the layer object. The properties are divided into groups with each group represented by a separate tab sheet. Each explained below:


General

The General tab allows to set the general properties of the layer object.



Data

The Data tab provides properties related to the data source of the layer. Data parameters are generally set when the Layer is added but the user has access to configure their own layer and modify existing parameters.
 


An MSSQL connection string consists of a hostname, instance name, database name, username and password separated by commas:  

Server=localhost\sqlexpress;Database=GIS;Trusted_Connection=True



A PostGIS connection string is a regular PostgreSQL connection string, it takes the form of:

user=nobody password=****** dbname=dbname host=localhost port=5432



An Oracle connection string:

user/pass[@db]



Example showing SQL Server dataset data parameter


ogr_geometry from tablename USING UNIQUE ogr_fid USING SRID=28355



([type]=’road’ and [size]<2)



Filtering on Geometry Type (SQL Server)


"ogr_geometry.STGeometryType() = 'Point'"




Label & Style

The Label & Style tab contains the properties related to the label rendering and style (symbology and colouring) of the layer.


By pressing the Class button the parameters of the default class (ie. the first class object) or selected class object can be edited in the Class Property Editor. Any pending changes in the layer will automatically applied before the Class Property Editor is displayed.

By pressing the Style button the parameters of the default style or selected style object can be edited in the Style Property Editor. Any pending changes in the layer will automatically applied before the Style Property Editor is displayed.

By clicking on the Label button the parameters of the default label or selected label object can be edited in the Label Property Editor. Any pending changes in the layer will automatically applied before the Label Property Editor is displayed.

Note: For more information about the classes, styles and labels please refer to the MapServer Object Model.


Processing

The Processing tab contains layer specific processing directives. The supported processing directives vary by layer type, and the underlying driver that processes them.

ITEMS=itemname1,itemname2,itemname3


CLOSE_CONNECTION=DEFER


GETSHAPE_STYLE_ITEMS=all


SCALE=AUTO
BANDS=3,2,1


CHART_TYPE=BAR
CHART_SIZE=65
CHART_BAR_MIN_VAL=10000
CHART_BAR_MAX_VAL=160000000