I'm trying to display features with different geometry types in single
LAYER. MapServer version 7.0.1 (MS4W 3.1.4). The data source is
MS SQL spatial database table with
geometry column, containing
Polygon geometry type features (all with the same SRID).
Here is most significant lines from
LAYER NAME "stations" CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" CONNECTION "Server=.\DB1;uid=***;pwd=***;Database=***;Integrated Security=True" DATA "Geom FROM [Stations] USING UNIQUE Id USING SRID=3785" TYPE polygon #TYPE point CLASS ... END END
I can define two
CLASS declarations with corresponding
EXPRESSION to filter by geometry type in
.map file but the
TYPE declaration is still required, omitting it gives
loadLayer(): General error message. Layer type not set. error.
Is it possible to do using
MapServer or defining separate
LAYERs for each geometry type is the only option ?