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

Reply via email to