[Cartoweb-users] Re: not able to load shape file in new project

karsten vennemann karsten at terragis.net
Thu Nov 8 18:33:27 EST 2007


Here it goes again. It seemed that the body of the message was lost somehow
:-)

 

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.php

 

call: CwSerializable::guessClassName(Null)

 

 

 

file: 255 - D:\web\sites\cartoweb3\common\CwSerializable.php

 

call: CwSerializable::unserializeObject(Object(stdClass), Null, Null)

 

 

 

file: 630 - D:\web\sites\cartoweb3\coreplugins\layers\common\Layers.php

 

call: CwSerializable::unserializeObjectMap(Object(stdClass), "layers")

 

 

 

file: 427 -
D:\web\sites\cartoweb3\coreplugins\layers\server\LayersInitProvider.php

 

call: LayersInit->unserialize(Object(stdClass))

 

 

 

file: 355 -
D:\web\sites\cartoweb3\coreplugins\layers\server\ServerLayers.php

 

call: LayersInitProvider->getInit()

 

 

 

file: 167 - D:\web\sites\cartoweb3\server\ServerPluginHelper.php

 

call: ServerLayers->getInit()

 

 

 

file: UNKNOWN - UNKNOWN

 

call: InitProviderHelper->getInitHelper(Object(ServerLayers))

 

 

 

file: 267 - D:\web\sites\cartoweb3\common\PluginManager.php

 

call: call_user_func_array(Array(2), Array(1))

 

 

 

file: 285 - D:\web\sites\cartoweb3\common\PluginManager.php

 

call: PluginManager->callPluginImplementing(Object(ServerLayers),
"InitProvider", "getInit", Array(0))

 

 

 

file: 166 - D:\web\sites\cartoweb3\server\MapInfoHandler.php

 

call: PluginManager->callPluginsImplementing("InitProvider", "getInit")

 

 

 

file: 49 - D:\web\sites\cartoweb3\server\ServerMapInfoCache.php

 

call: MapInfoHandler->loadMapInfo()

 

 

 

file: 99 - D:\web\sites\cartoweb3\common\MapInfoCache.php

 

call: ServerMapInfoCache->computeMapInfo()

 

 

 

file: 179 - D:\web\sites\cartoweb3\common\MapInfoCache.php

 

call: MapInfoCache->cacheMapInfo()

 

 

 

file: 177 - D:\web\sites\cartoweb3\server\MapInfoHandler.php

 

call: MapInfoCache->getMapInfo()

 

 

 

file: 396 - D:\web\sites\cartoweb3\server\ServerContext.php

 

call: MapInfoHandler->getMapInfo()

 

 

 

file: 191 - D:\web\sites\cartoweb3\server\Cartoserver.php

 

call: ServerContext->getMapInfo()

 

 

 

file: 349 - D:\web\sites\cartoweb3\server\Cartoserver.php

 

call: Cartoserver->doGetMapInfo("ocla.ocla")

 

 

 

file: 389 - D:\web\sites\cartoweb3\server\Cartoserver.php

 

call: Cartoserver->callWithExceptionCheck("doGetMapInfo", "ocla.ocla")

 

 

 

file: 104 - D:\web\sites\cartoweb3\client\CartoserverService.php

 

call: Cartoserver->getMapInfo("ocla.ocla")

 

 

 

file: 165 - D:\web\sites\cartoweb3\client\CartoserverService.php

 

call: CartoserverService->callDirect("getMapInfo", "ocla.ocla")

 

 

 

file: 224 - D:\web\sites\cartoweb3\client\CartoserverService.php

 

call: CartoserverService->callFunction("getMapInfo", "ocla.ocla")

 

 

 

file: 60 - D:\web\sites\cartoweb3\client\ClientMapInfoCache.php

 

call: CartoserverService->getMapInfo("ocla.ocla")

 

 

 

file: 163 - D:\web\sites\cartoweb3\common\MapInfoCache.php

 

call: ClientMapInfoCache->computeMapInfo()

 

 

 

file: 757 - D:\web\sites\cartoweb3\client\Cartoclient.php

 

call: MapInfoCache->getMapInfo("ocla.ocla")

 

 

 

file: 413 - D:\web\sites\cartoweb3\client\Cartoclient.php

 

call: Cartoclient->getMapInfo()

 

 

 

file: 31 - D:\web\sites\cartoweb3\htdocs\client.php

 

call: Cartoclient->__construct()

 

 

 

file: 3 - D:\web\sites\cartoweb3\htdocs\ocla.php

 

call: require_once("D:\web\sites\cartoweb3\htdocs\client.php")

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20071108/f20e35f1/attachment-0001.html


More information about the Cartoweb-users mailing list