Hi All,<div><br></div><div>Currently the OGR driver supports to get only of the various OGR label style parameters as special attributes (ie. OGR:LabelText or OGR_LabelAngle)</div><div><br></div><div>We would like to use further style parameters in mapserver so I've added a sample implementation for this in my forked repo:</div>
<div><br></div><div><a href="https://github.com/szekerest/mapserver/commit/78c2e56c0e5d9a5da68ed6719881392230a587f3">https://github.com/szekerest/mapserver/commit/78c2e56c0e5d9a5da68ed6719881392230a587f3</a></div><div><br>
</div><div>This implementation provides support to use the following special attributes</div><div><br></div><div>OGR:LabelParam[paramId]</div><div>OGR:BrushParam[paramId]</div><div>OGR:PenParam[paramId]</div><div>OGR:SymbolParam[paramId]</div>
<div><br></div><div>where [paramId] is an integer value according to the OGRSTLabelParam, OGRSTBrushParam, OGRSTPenParam, OGRSTSymbolParam enumerations in <a href="http://www.gdal.org/ogr/ogr__core_8h-source.html">ogr_core.h</a>.</div>
<div><br></div><div>With this addition we can easily map feature styles (ie mapinfo styles) to classes for example by using <b>CLASSITEM [OGR:BrushParam2]</b> which refers to the mapinfo brush id.</div><div><br></div><div>
What are the opinions about such kind of addition?</div><div><br></div><div>BTW: the ogr autostyle mechanism provides support to map style id-s to mapserver symbols but as of mapserver 6.0 this can be used less efficiently, since many of the symbol parameters (like patterns) has been moved to the style sections. So we'd prefer to map styleid-s to classes instead of symbols then.</div>
<div><br></div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div>