[mapserver-users] Include directive and mapscript

Yewondwossen Assefa yassefa at dmsolutions.ca
Tue Mar 24 05:23:04 PDT 2009


Paul,

  I could not reproduce this behavior locally. The fact that a layer 
comes from an include file or is in a map file should not make any 
difference since they all end up as part of the map object internally 
(no distinction where the layer comes from).  Not sure what to suggest 
if your include was done successfully. Maybe doing a map->save and 
making sure that all expected layers are there. If the map file seems 
fine and you still have a problem with that function, I am willing to 
test it if you provide me with the map file.

Best Regards,

Paul Moen wrote:
> I have found that the method getLayersIndexByGroup(string groupname) 
> does not find layers that are included from a different file.
> 
> $llist=$map->getLayersIndexByGroup("Political Boundaries");
> 
> $llist does not contain the indexes of any layers that are in the 
> include file.  Once, I copied the layer into the mapfile the layer was 
> listed in the array.
> 
> Is this a bug?
> 
> Thanks,
> 
> Paul
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------




More information about the MapServer-users mailing list