[mapserver-users] PHP/MapScript and STYLEITEM "AUTO"

Daniel Morissette morissette@dmsolutions.ca
Mon, 06 May 2002 09:07:03 -0400


Agnieszka Żak wrote:
> 
> I want to add few layers in PHP. How can I set STYLEITEM "AUTO" and
> PROJECTION "AUTO" using PHP (connection type MS_OGR, MapServer 3.5).
> 

STYLEITEM was missing in the PHP layerObj wrapper definition.  I added
it in CVS, and you should be able to set it like this:

  $layer->set("styleitem", "AUTO");

About the projection, did you try?

  $layer->setProjection("AUTO");

-- 
------------------------------------------------------------
 Daniel Morissette               morissette@dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.