[Cartoweb-users] [Plugin] error with 'outline' plugin
oliver
oliver.christen at camptocamp.com
Wed Apr 5 05:15:33 EDT 2006
Hi Yves
the error message may have several cause, but I mostly noticed that when
trying to outline something and there was a mismatch between the type of
outline selected on the interface and the layers used (like selecting
outline point and cw was using the outline_polygone layer)
verify the TYPE of the layers in the mapfile are correctly set to POINT,
LINE and POLYGONE
also, depending of the outline type wanted, the reference layer must contain
some parameters. Does the error only occure when you try to use the Line
type ?
verify the layers contains all the parameters I have in the exemple layers
below (symbol can be anything but it must be in your symbols reference
file):
LAYER
NAME "cartoweb_line_outline"
TYPE LINE
TRANSPARENCY 100
CLASS
STYLE
OUTLINECOLOR 255 0 0
SYMBOL "dashed_line"
SIZE 3
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 7
COLOR 0 0 0
OUTLINECOLOR 255 255 255
ANGLE auto
POSITION uc
END
END
END
> Hi,
> Le Mardi 4 Avril 2006 16:49, vous avez écrit :
>> Hi Yves,
>>
>> be sure to include all different layers for all the outline type (point,
>> line and polygone) in your mapfile and set the layers configuration in
>> the
>> outline.ini for all 3 type also
> My mapfile contains all the 3 layers (cartoweb_XXX_outline) where XXX is
> point, line and polygon.
> My outline.ini contains :
>
> /***** outlin.ini file
> pointLayer = cartoweb_point_outline
> lineLayer = cartoweb_line_outline
> polygonLayer = cartoweb_polygon_outline
> maskColor = 223 223 223
> areaFactor = 1
> /***** End of file
>
> And the other outline.ini file :
>
> /***** outlin.ini file
> multipleShapes = true
> labelMode = true
> /***** End of file
>
>> This error come from an uncompatibility between the new
>> outline/mapoverlay
>> plugin version and an outdated fallback process of the outline that try
>> to
>> use the polygone outline layer if there is no layer specified for point
>> outline. This fallback process was removed in the current cvs version.
> If I understood, when a point layer doesn't exists CW3 uses polygon layer
> ?
> This fallback tells to CW3 to use it ?
>
> Thank you
>
> Y.
>> regards
>> Oliver
>>
>> > Hi,
>> > I try to use the outline plugin. I followed the documentation from
>> > cartoweb3
>> > website and use layer configuration from demoCW3 (thanks to a post from
>> > Pierre
>> > Giraud in georezo' forum).
>> > When I try to create a point/line/... and after fill the form, I get
>> > this
>> > error message :
>> > /****************************************
>> > class: SoapFaultWrapper
>> > message: mainmap image not generated yet
>> > Backtrace:
>> > file: 186 - /var/www/html/cartoweb3/server/ServerContext.php
>> > call: ServerContext::getMsMainmapImage()
>> >
>> > file: 265 -
>> > /var/www/html/cartoweb3/coreplugins/images/server/ServerImages.php
>> > call: ServerContext->getMsMainmapImage()
>> >
>> > file: 74 - /var/www/html/cartoweb3/server/ServerPluginHelper.php
>> > call: ServerImages->handleCorePlugin(Object(Images))
>> >
>> > file: 184 - /var/www/html/cartoweb3/server/ServerPluginHelper.php
>> > call: CoreProviderHelper->callHandleFunction(Object(ServerImages),
>> > "handleCorePlugin")
>> >
>> > file: 267 - /var/www/html/cartoweb3/common/PluginManager.php
>> > call: CoreProviderHelper->handleCorePluginHelper(Object(ServerImages))
>> >
>> > file: 267 - /var/www/html/cartoweb3/common/PluginManager.php
>> > call: call_user_func_array(Array(2), Array(1))
>> >
>> > file: 311 - /var/www/html/cartoweb3/server/Cartoserver.php
>> > call: PluginManager->callPluginImplementing(Object(ServerImages),
>> > "CoreProvider", "handleCorePlugin")
>> >
>> > file: 337 - /var/www/html/cartoweb3/server/Cartoserver.php
>> > call: Cartoserver->doGetMap(Object(MapRequest))
>> >
>> > file: 358 - /var/www/html/cartoweb3/server/Cartoserver.php
>> > call: Cartoserver->callWithExceptionCheck("doGetMap",
>> > Object(MapRequest))
>> >
>> > file: 81 - /var/www/html/cartoweb3/server/MapResultCache.php
>> > call: Cartoserver->cacheGetMap(Object(MapRequest))
>> >
>> > file: 192 - /var/www/html/cartoweb3/server/MapResultCache.php
>> > call: MapResultCache->getMapResultFromServer(Object(MapRequest))
>> >
>> > file: 368 - /var/www/html/cartoweb3/server/Cartoserver.php
>> > call: MapResultCache->getMap(Object(MapRequest))
>> >
>> > file: 104 - /var/www/html/cartoweb3/client/CartoserverService.php
>> > call: Cartoserver->getMap(Object(MapRequest))
>> >
>> > file: 158 - /var/www/html/cartoweb3/client/CartoserverService.php
>> > call: CartoserverService->callDirect("getMap", Object(MapRequest))
>> >
>> > file: 226 - /var/www/html/cartoweb3/client/CartoserverService.php
>> > call: CartoserverService->callFunction("getMap", Object(MapRequest))
>> >
>> > file: 776 - /var/www/html/cartoweb3/client/Cartoclient.php
>> > call: CartoserverService->getMap(Object(MapRequest))
>> >
>> > file: 892 - /var/www/html/cartoweb3/client/Cartoclient.php
>> > call: Cartoclient->getMapResultFromRequest(Object(MapRequest))
>> >
>> > file: 1027 - /var/www/html/cartoweb3/client/Cartoclient.php
>> > call: Cartoclient->doMain()
>> >
>> > file: 38 - /var/www/html/cartoweb3/htdocs/client.php
>> > call: Cartoclient->main()
>> > /****************************************
>> >
>> > I then added the mapOverlay plugin in the list in test.ini from
>> > serveru_conf/test/ (my project is called test)
>> >
>> > But nothing news appears. It is still not good ! any idea ?
>> >
>> > Furthemore it seems there is an error in documentation about the
>> > "polyLayer"
>> > parameter, an outline.ini file in test project from cartoweb use
>> > "polygonLayer". which one do we need to use ?
>> >
>> > Thanks,
>> >
>> > Yves Jacolin
>> > http://yjacolin.gloobe.org
>> > ----
>> > Stagaire Conservatoire Régional des Espaces Naturels de la région
>> > Centre
>> > http://cahiersnaturalistes.free.fr/cpnrc/
>> >
>> > --
>> > Yves Jacolin
>> > http://yjacolin.gloobe.org
>> > ----
>> > Stagaire Conservatoire Régional des Espaces Naturels de la région
>> > Centre
>> > http://cahiersnaturalistes.free.fr/cpnrc/
>> >
>> > _______________________________________________
>> > Cartoweb-users mailing list
>> > Cartoweb-users at lists.maptools.org
>> > http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
> --
> Yves Jacolin
> http://yjacolin.gloobe.org
> ----
> Stagaire Conservatoire Régional des Espaces Naturels de la région Centre
> http://cahiersnaturalistes.free.fr/cpnrc/
>
>
More information about the Cartoweb-users
mailing list