[mapserver-dev] how does CONNECTIONTYPE function?

Frank Warmerdam warmerdam at pobox.com
Tue Jul 15 22:43:38 EDT 2008


zhox at 163.com wrote:
> Hi guys,
> 
> I want to know why I meet a problem telling that "getSymbol():Symbol definition 
> error. Parsing error near(LOCAL):(line 91)" when I declare the CONNECTIONTYPE
> as LOCAL, if I do not declare that, it is OK. Does that mean if I use a shapefile as 
> data source, I can not declare the CONNECTIONTYPE definitely even it has a default 
> value of LOCAL? Following is the affected segment of the Mapfile:
> ______________________________________________________________________________
> 	LAYER
> 		NAME rivers   #shape file
> 		GROUP "VECTOR"
> 		TYPE LINE
> 		STATUS DEFAULT
> 		DATA ../../data/rivers
> 		CONNECTIONTYPE LOCAL
...
> Could you please clarify what's the relationship between CONNECTIONTYPE CONNECTION and DATA? 

Enri,

I've never heard of connection type "local" before.  Idon't see anything
about it in a grep of the source code.  For shapefile layers normally one
does not define CONNECTION or CONNECTIONTYPE - just put the path for the
shapefile in the DATA statement.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the mapserver-dev mailing list