[mapserver-users] get connectiontyp via mapscript

Yewondwossen Assefa yassefa at dmsolutions.ca
Thu Mar 5 08:12:19 EST 2009


http://mapserver.org/mapscript/php/index.html (check Connection Types). 
When using mapscript you should do your tests using the defined 
constants (MS_SHAPEFILE, MS_POSTGIS ...).
  Note that the php defined constants reflect what is defined in 
mapserver.h (MS_CONNECTION_TYPE enumeration)

Best Regards,


Sven Schroeter wrote:
> Hi all,
> 
> I try to get the connectiontyp via mapscript, this works:
> 
> $layer = $map->getLayerByName($qlayer);
> $contyp = $layer->connectiontype;
> 
> I get back a "1" for shapefiles and a "6" for Postgis-layers.
> 
> Where can I find the other types?
> 
> Thanks
> Sven
> 
> _______________________________________________
> 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