You can also check the MapServer source and see that those parameters in the document match what is exposed through the source: https://github.com/DMS-Aus/MapServer/blob/master/mapogr.cpp#L1493-L1515

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




On 2017-03-21 3:54 PM, Jeff McKenna wrote:
Hi Flavio!

The section you are referring to is specially for accessing label styles
through MapScript
(http://mapserver.org/input/vector/ogr.html#accessing-ogr-styleitemauto-label-styles-through-mapscript).
 So I have now tested and confirmed that with MapServer 7.0.4 (MS4W
3.2.1) I can access the "OGR:LabelText" style, on a MapInfo .TAB file,
through PHP MapScript as follows:

  // open map
  $oMap = ms_newMapObj( "D:/ms4w/apps/ogr-demos/nfld_demo/test.map" );

  //get layer
  $oLayer = $oMap->getLayerByName("Map_Labels");

  //get styles
  $status = $oLayer->open();
  $status = $oLayer->whichShapes($oMap->extent);
  while ($oShape = $oLayer->nextShape())
  {
    //echo $oShape->index ."<br>\n";
    echo $oShape->getValue($oLayer,"OGR:LabelText");
    echo "\n";
  }
  $oLayer->close();


My mapfile layer is as follows:

  LAYER
    NAME "Map_Labels"
    TYPE POINT
    STATUS ON
    CONNECTIONTYPE OGR
    CONNECTION "data/nfld/Map_Labels.TAB"
    STYLEITEM "AUTO"
    CLASS
      NAME "Map_Labels"
    END
    PROCESSING "GETSHAPE_STYLE_ITEMS=all"
  END # Layer

-jeff





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

Reply via email to