[Cartoweb-users] id error in mapfile
Paul Shapley
p.shapley at gmail.com
Thu Feb 22 08:28:30 EST 2007
Hi Carto Users,
I'm using the following code in the mapfile but it does not like the 'FID'
index in the shapefile which is set as:
LAYER
NAME "lan"
TYPE POLYGON
STATUS ON
TRANSPARENCY 50
DATA "c:\wamp\www\cartoweb3\projects\Paul\server_conf\Paul\data\lan.shp"
TEMPLATE "ttt"
METADATA
"id_attribute_string" "FID|string"
"query_returned_attributes" "FID applicatio"
END
CLASS
NAME "lan"
COLOR 27 163 255
OUTLINECOLOR 0 0 0
END
END
Could something be incorrect in the .map file above. Below is the Carto
error produced.
Class : SoapFaultWrapper
Message : Error [8, Undefined index: FID,
C:\wamp\www\cartoweb3\coreplugins\query\server\ServerQuery.php, 147]
Backtrace: file: 147 -
C:\wamp\www\cartoweb3\coreplugins\query\server\ServerQuery.php call:
Common::cartowebErrorHandler(8, "Undefined index: FID",
"C:\wamp\www\cartoweb3\coreplugins\query\server\ServerQuery.php", 147,
Array(13)) file: 300 -
C:\wamp\www\cartoweb3\coreplugins\query\server\ServerQuery.php call:
ServerQuery->resultToTable(Array(9), "lan", "FID", Array(2),
Object(TableFlags)) file: 429 -
C:\wamp\www\cartoweb3\coreplugins\query\server\ServerQuery.php call:
ServerQuery->queryLayer(Object(Circle), Object(QuerySelection)) file: 74 -
C:\wamp\www\cartoweb3\server\ServerPluginHelper.php call:
ServerQuery->handlePreDrawing(Object(QueryRequest)) file: 133 -
C:\wamp\www\cartoweb3\server\ServerPluginHelper.php call:
ServerPluginHelper->callHandleFunction(Object(ServerQuery),
"handlePreDrawing") file: UNKNOWN - UNKNOWN call:
ClientResponderHelper->handlePreDrawingHelper(Object(ServerQuery)) file: 267
- C:\wamp\www\cartoweb3\common\PluginManager.php call:
call_user_func_array(Array(2), Array(1)) file: 285 -
C:\wamp\www\cartoweb3\common\PluginManager.php call:
PluginManager->callPluginImplementing(Object(ServerQuery),
"ClientResponder", "handlePreDrawing", Array(0)) file: 301 -
C:\wamp\www\cartoweb3\server\Cartoserver.php call:
PluginManager->callPluginsImplementing("ClientResponder",
"handlePreDrawing") file: 349 - C:\wamp\www\cartoweb3\server\Cartoserver.php
call: Cartoserver->doGetMap(Object(MapRequest)) file: 370 -
C:\wamp\www\cartoweb3\server\Cartoserver.php call:
Cartoserver->callWithExceptionCheck("doGetMap", Object(MapRequest)) file: 81
- C:\wamp\www\cartoweb3\server\MapResultCache.php call:
Cartoserver->cacheGetMap(Object(MapRequest)) file: 192 -
C:\wamp\www\cartoweb3\server\MapResultCache.php call:
MapResultCache->getMapResultFromServer(Object(MapRequest)) file: 380 -
C:\wamp\www\cartoweb3\server\Cartoserver.php call:
MapResultCache->getMap(Object(MapRequest)) file: 104 -
C:\wamp\www\cartoweb3\client\CartoserverService.php call:
Cartoserver->getMap(Object(MapRequest)) file: 165 -
C:\wamp\www\cartoweb3\client\CartoserverService.php call:
CartoserverService->callDirect("getMap", Object(MapRequest)) file: 233 -
C:\wamp\www\cartoweb3\client\CartoserverService.php call:
CartoserverService->callFunction("getMap", Object(MapRequest)) file: 916 -
C:\wamp\www\cartoweb3\client\Cartoclient.php call:
CartoserverService->getMap(Object(MapRequest)) file: 1045 -
C:\wamp\www\cartoweb3\client\Cartoclient.php call:
Cartoclient->getMapResultFromRequest(Object(MapRequest)) file: 1220 -
C:\wamp\www\cartoweb3\client\Cartoclient.php call:
Cartoclient->doMain()file: 38 - C:\wamp\www\cartoweb3\htdocs\client.php
call: Cartoclient->main()file: 3 - C:\wamp\www\cartoweb3\htdocs\Paul.php
call: require_once("C:\wamp\www\cartoweb3\htdocs\client.php")
--
Paul J. Shapley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20070222/b93d6db7/attachment.html
More information about the Cartoweb-users
mailing list