<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">Hi Carto Users,</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"> </div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">I'm using the following code in the mapfile but it does not like the 'FID' index in the shapefile which is set as:
</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"> </div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">LAYER<br> NAME "lan"<br> TYPE POLYGON<br> STATUS ON<br> TRANSPARENCY 50<br> DATA "c:\wamp\www\cartoweb3\projects\Paul\server_conf\Paul\data\lan.shp"
<br> TEMPLATE "ttt"<br> METADATA<br> "id_attribute_string" "FID|string"<br> "query_returned_attributes" "FID applicatio"<br> END<br> CLASS <br> NAME "lan"
<br> COLOR 27 163 255<br> OUTLINECOLOR 0 0 0<br> END<br>END</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"> </div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">Could something be incorrect in the .map file above. Below is the Carto error produced.</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"> </div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">Class : SoapFaultWrapper<br>Message : Error [8, Undefined index: FID, C:\wamp\www\cartoweb3\coreplugins\query\server\ServerQuery.php, 147]
</div>
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")
<br clear="all"><br>-- <br>Paul J. Shapley