Just for info, if the outline plugin is loaded, it will seek three layers in the mapfile, named cartoweb_point_outline , cartoweb_line_outline and cartoweb_polygon_outline . These layers are needed to display outline drawing on the map. If you want to use the outline plugin you will need to add these three layers in your mapfile. You can customise the names, but then you will have to correct the name in the server_conf/your_project/outline.ini config file.

Regards,
Oliver


Sorry,

I gave a too quick read to the errors.

You probably loaded the outline plugin (or let it loaded) and have parameters defined for the layers set for this plugin. Try to remove it from the list of loaded plugins on both client and server side.

Regards

Pierre GIRAUD



Ludovic Claudel wrote:

Hi,

That is my two files:

--------------------------------------------------------------------------------------

ludo.map
--------------------------------------------------------------------------------------

MAP
NAME "camargue"
STATUS ON
IMAGETYPE PNG
SIZE 500 372
EXTENT 751323 116669 809748 160043
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 255 255 255

OUTPUTFORMAT
   NAME png
   DRIVER "GD/PNG"
   MIMETYPE "image/png"
   IMAGEMODE PC256
   EXTENSION "png"
   FORMATOPTION "INTERLACE=OFF"
   TRANSPARENT ON
END
PROJECTION
 "init=epsg:27563"
END

LEGEND
   KEYSIZE 20 15
END

#
# Start of layer definitions
#

LAYER
 NAME "mer"
 TYPE POLYGON
 STATUS ON
 DATA "Mer"
 CLASS
   NAME "mer"
   # TEMPLATE
   STYLE
   COLOR 51 51 102
   END
 END
END

LAYER
 NAME "sol"
 TYPE POLYGON
 STATUS ON
 DATA "Sol"
 CLASS
   NAME "sol"
   # TEMPLATE
   STYLE
   COLOR 204 153 102
   END
  END
END


END # Map File

------------------------------------------------------------------------
layers.ini
------------------------------------------------------------------------

; whether to generate class icons automatically
;autoClassLegend = true

; layers
layers.root.className = LayerGroup
layers.root.children = nature
layers.root.rendering = block

layers.nature.className = LayerGroup
layers.nature.label = nature
layers.nature.children = mer, sol

layers.mer.className = Layer
layers.mer.msLayer = mer
layers.mer.label = Mer

layers.sol.className = Layer
layers.sol.msLayer = sol
layers.sol.label = Sol

----------------------------------------------------------------------------------



And I have this two errors:

*Warning*: getLayerByName failed for : cartoweb_point_outline in */var/www/testcarto/cartoweb3/plugins/outline/server/ServerOutline.php* on line *356*

*Fatal error*: Call to a member function getClass() on a non-object in */var/www/testcarto/cartoweb3/plugins/outline/server/ServerOutline.php* on line *361

-----------------------------------------------------------

I don't see the problem, it's certainly a bad write of my part.

thanks

ludovic,





*




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



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


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

Reply via email to