Yes there is a layer in the mapfile called 'planning' which makes this very strange. Here is the .mapfile for you to check
 
Many thanks,
 
Paul

 
On 24/04/06, oliver <[EMAIL PROTECTED]> wrote:
this will sound like a stupid question but do you have a 'planning' layer in your mapfile ?
 
Regards
Oliver
----- Original Message -----
Sent: Monday, April 24, 2006 9:32 AM
Subject: [Cartoweb-users] Layer.ini

 
Hi All,
 
I'm trying to add a second shapefile to Cartoweb3.2 but i think there may be a problem with the layers.ini file but unable to identify this error:
 


Warning: getLayerByName failed for : planning in c:\wamp\www\cartoweb3\coreplugins\layers\server\LayersInitProvider.php on line 198

Warning: Cannot modify header information - headers already sent by (output started at c:\wamp\www\cartoweb3\coreplugins\layers\server\LayersInitProvider.php:198) in c:\wamp\www\cartoweb3\client\FormRenderer.php on line 297



 
Failure
Class : SoapFaultWrapper
Message : Could not find msLayer planning Backtrace:

file: 289 - c:\wamp\www\cartoweb3\coreplugins\layers\server\LayersInitProvider.php
call: LayersInitProvider->fillDynamicLayer(Object(Layer))

file: 325 - c:\wamp\www\cartoweb3\coreplugins\layers\server\LayersInitProvider.php
call: LayersInitProvider->fillDynamicLayers()

file: 240 - c:\wamp\www\cartoweb3\coreplugins\layers\server\ServerLayers.php
call: LayersInitProvider->getInit()

file: 168 - c:\wamp\www\cartoweb3\server\ServerPluginHelper.php
call: ServerLayers->getInit()

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

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(ServerLayers), "InitProvider", "getInit", Array(0))

file: 166 - c:\wamp\www\cartoweb3\server\MapInfoHandler.php
call: PluginManager->callPluginsImplementing("InitProvider", "getInit")

file: 49 - c:\wamp\www\cartoweb3\server\ServerMapInfoCache.php
call: MapInfoHandler->loadMapInfo()

file: 99 - c:\wamp\www\cartoweb3\common\MapInfoCache.php
call: ServerMapInfoCache->computeMapInfo()

file: 169 - c:\wamp\www\cartoweb3\common\MapInfoCache.php
call: MapInfoCache->cacheMapInfo()

file: 177 - c:\wamp\www\cartoweb3\server\MapInfoHandler.php
call: MapInfoCache->getMapInfo()

file: 378 - c:\wamp\www\cartoweb3\server\ServerContext.php
call: MapInfoHandler->getMapInfo()

file: 190 - c:\wamp\www\cartoweb3\server\Cartoserver.php
call: ServerContext->getMapInfo()

file: 337 - c:\wamp\www\cartoweb3\server\Cartoserver.php
call: Cartoserver->doGetMapInfo("Paul.Paul")

file: 377 - c:\wamp\www\cartoweb3\server\Cartoserver.php
call: Cartoserver->callWithExceptionCheck("doGetMapInfo", "Paul.Paul")

file: 102 - c:\wamp\www\cartoweb3\client\CartoserverService.php
call: Cartoserver->getMapInfo("Paul.Paul")

file: 156 - c:\wamp\www\cartoweb3\client\CartoserverService.php
call: CartoserverService->callDirect("getMapInfo", "Paul.Paul")

file: 215 - c:\wamp\www\cartoweb3\client\CartoserverService.php
call: CartoserverService->callFunction("getMapInfo", "Paul.Paul")

file: 60 - c:\wamp\www\cartoweb3\client\ClientMapInfoCache.php
call: CartoserverService->getMapInfo("Paul.Paul")

file: 99 - c:\wamp\www\cartoweb3\common\MapInfoCache.php
call: ClientMapInfoCache->computeMapInfo()

file: 169 - c:\wamp\www\cartoweb3\common\MapInfoCache.php
call: MapInfoCache->cacheMapInfo()

file: 590 - c:\wamp\www\cartoweb3\client\Cartoclient.php
call: MapInfoCache->getMapInfo("Paul.Paul")

file: 374 - c:\wamp\www\cartoweb3\client\Cartoclient.php
call: Cartoclient->getMapInfo()

file: 36 - c:\wamp\www\cartoweb3\htdocs\client.php
call: Cartoclient->__construct()

file: 3 - c:\wamp\www\cartoweb3\htdocs\Paul.php
call: require_once("c:\wamp\www\cartoweb3\htdocs\client.php")



Could someone have a look at this layers.ini file and tell me where the problem is?
 
Thanks,
 
Paul Shapley
 


 




 




 


_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users


MAP
  NAME "demoPlugins"
  EXTENT 273394 196846 277641 198787
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  STATUS ON
  UNITS meters
  FONTSET "fonts.txt"
  SYMBOLSET "symbols.txt"
  SHAPEPATH "data"

OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE PC256
  EXTENSION "png"
  FORMATOPTION "INTERLACE=OFF"
  TRANSPARENT ON
END
 
OUTPUTFORMAT
  NAME jpeg
  DRIVER "GD/JPEG"
  MIMETYPE "image/jpeg"
  IMAGEMODE RGB
  EXTENSION "jpg"
  FORMATOPTION "INTERLACE=OFF"
  FORMATOPTION "QUALITY=80"
END

#
# Start of web definition
#

WEB
  TEMPLATE "c:\wamp\www\cartoweb3\projects\Paul\templates\mainmap.tpl"
  IMAGEPATH "c:\wamp\www\cartoweb3\projects\Paul\server_conf\Paul\images\"
  IMAGEURL "http://localhost/cartoweb3/projects/Paul/server_conf/Paul/images/";
  LOG "c:\wamp\www\cartoweb3\log\log.txt"
END

#
# Start of reference map
#

REFERENCE
  IMAGE 
"c:\wamp\www\cartoweb3\projects\Paul\server_conf\Paul\images\keymap1.png"
  EXTENT 273394 196846 277641 198787
  STATUS ON
  COLOR -1 -1 -1 
  OUTLINECOLOR 255 0 0
  SIZE 95 95
END

#
# Start of scalebar
#

SCALEBAR
  POSTLABELCACHE TRUE
  STYLE 0
  UNITS meters
  SIZE 350 3
  TRANSPARENT TRUE
    COLOR 77 77 88
    IMAGECOLOR 242 255 195
    BACKGROUNDCOLOR 222 222 222
    LABEL 
    TYPE BITMAP
    SIZE SMALL
    COLOR 0 0 0
    POSITION UR
    BUFFER 10
  END
END

#
# Start of legend
#

LEGEND 
  KEYSIZE 18 12
END

#
# Start of query definitions
#

QUERYMAP
  STATUS ON
  STYLE HILITE
END

#
# Start of Layers
#

LAYER
  NAME "mastermappoly"
  TYPE POLYGON
  STATUS ON
  DATA 
"c:\wamp\www\cartoweb3\projects\Paul\server_conf\Paul\data\mastermappoly.shp"
    CLASS 
        NAME "mastermappoly"
        COLOR 255 255 255
        OUTLINECOLOR 0 0 0
        END
    END
END

LAYER
  NAME "planning"
  TYPE POLYGON
  STATUS ON
  DATA "c:\wamp\www\cartoweb3\projects\Paul\server_conf\Paul\data\planning.shp"
    CLASS 
        NAME "planning"
        COLOR 0 0 0
        OUTLINECOLOR 255 255 255
        END
    END
END

LAYER
  NAME "raster"
  TYPE RASTER
  DATA "gtopo30_shade.tif"
  METADATA
     "force_imagetype" "jpeg"
  END
END

#
# Start of outlines
#

LAYER
  NAME "cartoweb_polygon_outline"
  TYPE POLYGON
  TRANSPARENCY 60
  CLASS
    STYLE
      COLOR 255 255 255
      OUTLINECOLOR 0 0 0
    END
    LABEL
      TYPE TRUETYPE
      FONT "Vera"
      SIZE 7
      OUTLINECOLOR 255 255 255
      COLOR 0 0 0
      POSITION cc
    END
  END
END
END







 
_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to