Hi the important message here is: Message : Object to unserialize has no className attribute, and no class name was given:
meaning you have not defined your new layer correctly in the layers.ini file or you have a syntax error in that file. check the layers references are correct for the new layer you added. it must be layers.my_layer.class = Layer if it is a simple layer (probably your case)orlayers.my_layer.class = LayerGroup if it a layer groupsalso if the layer id you set in the layers.ini is different than your layer name in the mapfile, check that layers.my_layer.msLayer = layer_name_in_mapfile is correctregardsOliver----- Original Message ----- From: karsten vennemann To: cartoweb-users@lists.maptools.org Sent: Friday, November 09, 2007 12:11 AM Subject: [Cartoweb-users] not able to load shape file in new project Hi All, I created a new project (as a copy of demoCW3) and edited the files to reflect the projects new name "ocla" which works fine. I then tried to use my own data and initially wanted just to load one shape file for "counties" which I copied into the existing data directory (where the demo data are located). However, these data are in a different projection and extent, thus I edited that in the map file (deleted all demo data references in the map file and the layer.ini file). I added this extent and projection to the map file. EXTENT 600000 -800000 2750000 1000000 And PROJECTION "init=esri:2285" END When I load the project I the browser I get the errors below. I checked what .php on line 329 refers to - that is the second line in public function setFromString($value) { list($minx, $miny, $maxx, $maxy) = explode(',', $value); $this->setFromBbox((double)$minx, (double)$miny, (double)$maxx, (double)$maxy); } Thus it seems to that the map extent is somehow wrong? Any clues how to fix that (I have the same layer with that projection, map extent and mapfile syntax working in mapserver alone .) ? What are those "Undefined offset" warnings ? Thanks Karsten Notice: Undefined offset: 3 in D:\web\sites\cartoweb3\common\BasicTypes.php on line 329 Notice: Undefined offset: 2 in D:\web\sites\cartoweb3\common\BasicTypes.php on line 329 Notice: Undefined offset: 1 in D:\web\sites\cartoweb3\common\BasicTypes.php on line 329 Notice: Undefined offset: 3 in D:\web\sites\cartoweb3\common\BasicTypes.php on line 329 Notice: Undefined offset: 2 in D:\web\sites\cartoweb3\common\BasicTypes.php on line 329 Notice: Undefined offset: 1 in D:\web\sites\cartoweb3\common\BasicTypes.php on line 329 Warning: Cannot modify header information - headers already sent by (output started at D:\web\sites\cartoweb3\common\BasicTypes.php:329) in D:\web\sites\cartoweb3\client\FormRenderer.php on line 460 Failure Class : SoapFaultWrapper Message : Object to unserialize has no className attribute, and no class name was given: Backtrace: file: 215 - D:\web\sites\cartoweb3\common\CwSerializable.phpcall: CwSerializable::guessClassName(Null) file: 255 - D:\web\sites\cartoweb3\common\CwSerializable.phpcall: CwSerializable::unserializeObject(Object(stdClass), Null, Null) file: 630 - D:\web\sites\cartoweb3\coreplugins\layers\common\Layers.phpcall: CwSerializable::unserializeObjectMap(Object(stdClass), "layers") file: 427 - D:\web\sites\cartoweb3\coreplugins\layers\server\LayersInitProvider.phpcall: LayersInit->unserialize(Object(stdClass)) file: 355 - D:\web\sites\cartoweb3\coreplugins\layers\server\ServerLayers.phpcall: LayersInitProvider->getInit() file: 167 - D:\web\sites\cartoweb3\server\ServerPluginHelper.phpcall: ServerLayers->getInit() file: UNKNOWN - UNKNOWNcall: InitProviderHelper->getInitHelper(Object(ServerLayers)) file: 267 - D:\web\sites\cartoweb3\common\PluginManager.phpcall: call_user_func_array(Array(2), Array(1)) file: 285 - D:\web\sites\cartoweb3\common\PluginManager.phpcall: PluginManager->callPluginImplementing(Object(ServerLayers), "InitProvider", "getInit", Array(0)) file: 166 - D:\web\sites\cartoweb3\server\MapInfoHandler.phpcall: PluginManager->callPluginsImplementing("InitProvider", "getInit") file: 49 - D:\web\sites\cartoweb3\server\ServerMapInfoCache.phpcall: MapInfoHandler->loadMapInfo() file: 99 - D:\web\sites\cartoweb3\common\MapInfoCache.phpcall: ServerMapInfoCache->computeMapInfo() file: 179 - D:\web\sites\cartoweb3\common\MapInfoCache.phpcall: MapInfoCache->cacheMapInfo() file: 177 - D:\web\sites\cartoweb3\server\MapInfoHandler.phpcall: MapInfoCache->getMapInfo() file: 396 - D:\web\sites\cartoweb3\server\ServerContext.phpcall: MapInfoHandler->getMapInfo() file: 191 - D:\web\sites\cartoweb3\server\Cartoserver.phpcall: ServerContext->getMapInfo() file: 349 - D:\web\sites\cartoweb3\server\Cartoserver.phpcall: Cartoserver->doGetMapInfo("ocla.ocla") file: 389 - D:\web\sites\cartoweb3\server\Cartoserver.phpcall: Cartoserver->callWithExceptionCheck("doGetMapInfo", "ocla.ocla") file: 104 - D:\web\sites\cartoweb3\client\CartoserverService.phpcall: Cartoserver->getMapInfo("ocla.ocla") file: 165 - D:\web\sites\cartoweb3\client\CartoserverService.phpcall: CartoserverService->callDirect("getMapInfo", "ocla.ocla") file: 224 - D:\web\sites\cartoweb3\client\CartoserverService.phpcall: CartoserverService->callFunction("getMapInfo", "ocla.ocla") file: 60 - D:\web\sites\cartoweb3\client\ClientMapInfoCache.phpcall: CartoserverService->getMapInfo("ocla.ocla") file: 163 - D:\web\sites\cartoweb3\common\MapInfoCache.phpcall: ClientMapInfoCache->computeMapInfo() file: 757 - D:\web\sites\cartoweb3\client\Cartoclient.phpcall: MapInfoCache->getMapInfo("ocla.ocla") file: 413 - D:\web\sites\cartoweb3\client\Cartoclient.phpcall: Cartoclient->getMapInfo() file: 31 - D:\web\sites\cartoweb3\htdocs\client.phpcall: Cartoclient->__construct() file: 3 - D:\web\sites\cartoweb3\htdocs\ocla.phpcall: require_once("D:\web\sites\cartoweb3\htdocs\client.php") karsten ------------------------------------------------------------------------------ _______________________________________________ Cartoweb-users mailing list Cartoweb-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/cartoweb-users
<<image001.gif>>
_______________________________________________ Cartoweb-users mailing list Cartoweb-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/cartoweb-users