Thanks AlanYes that's what I try to do but when I try to launch xmlstarlet I always have an invalid mapfile;
for exemple I join my mapfile And the message of xmlstartlet is :
"mapfile-test_ludo.xml:69: element LayerSet: Schemas validity error : Element '{http://www.mapserver.org/mapserver}LayerSet': This element is not expected. Expected is ( {http://www.mapserver.org/mapserver}Web )."
If I delete the LayerSet bloc it's ok but it's annoying ...If I try with my very little mapfile.map, it seems that it always miss some bloc so I must insert legend, scalebar, etc
Thanks for your help Ludovic Le 19/08/2011 14:20, Alan Boudreault a écrit :
IIRC, the mapfiles in svn were only to test translation and loading. You can take a small standard mapfile you have and write it in xml. It should be very straighforward and you can use the svn mapfiles as example. Let me know if you need further help. Alan On August 19, 2011 07:42:17 am Ludovic Granjon wrote:Hello Someone is using mapfiles in xml? I tried but it does not work, is there such a minimal mapfile in xml to try? Is there a documentation ? I tried unsuccessfully http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile Thanks Ludovic
<?xml version="1.0" encoding="UTF-8"?> <Map name="monxmlmapfile" xmlns="http://www.mapserver.org/mapserver" status="ON" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mapserver.org/mapserver ../mapfile.xsd" version="6.0"> <debug>2</debug> <defResolution>72</defResolution> <extent>-7.745328 42.136123 10.892048 51.323191</extent> <imageColor red="0" green="255" blue="255"/> <imageType>png</imageType> <maxSize>2048</maxSize> <OutputFormat name="PNG"> <driver>AGG/PNG</driver> <extension>png</extension> <formatOption>TILED=YES</formatOption> <imageMode>RGBA</imageMode> <mimeType>image/png</mimeType> <transparent>ON</transparent> </OutputFormat> <projection> init=epsg:4326 </projection> <resolution>72</resolution> <scaleDenom>24000</scaleDenom> <ScaleBar status="EMBED"> <align>CENTER</align> <backgroundColor red="244" green="43" blue="22"/> <color red="244" green="43" blue="22"/> <imageColor red="0" green="255" blue="255"/> <intervals>5</intervals> <Label type="TRUETYPE"> <align>CENTER</align> <angle>10</angle> <antialias>FALSE</antialias> <buffer>2</buffer> <colorAttribute>[myColor]</colorAttribute> <encoding>ISO 8859-1</encoding> <font>serif</font> <force>TRUE</force> <maxLength>244</maxLength> <maxSize>244</maxSize> <minDistance>24</minDistance> <minFeatureSize>AUTO</minFeatureSize> <minSize>6</minSize> <offset x="12" y="33"/> <outlineColor red="244" green="43" blue="22"/> <outlineWidth>13</outlineWidth> <partials>TRUE</partials> <position>LL</position> <priority>5</priority> <shadowColor red="244" green="43" blue="22"/> <shadowSize x="15" y="14"/> <size>SMALL</size> <wrap>\n</wrap> </Label> <outlineColor red="12" green="45" blue="12"/> <position>LR</position> <postLabelCache>TRUE</postLabelCache> <size x="90" y="8"/> <style>0</style> <transparent>ON</transparent> <units>NAUTICALMILES</units> </ScaleBar> <shapePath>/home/anr_care/donnees</shapePath> <size x="800" y="800"/> <symbolSet>example.sym</symbolSet> <units>DD</units> <Web> <imagePath>/tmp/</imagePath> <imageUrl>/tmp/</imageUrl> </Web> <LayerSet> <Layer name="layer1" type="RASTER" status="DEFAULT"> <debug>ON</debug> <connection>http://iceds.ge.ucl.ac.uk/cgi-bin/icedswms?</connection> <connectionType>WMS</connectionType> </Layer> </LayerSet> </Map>
<<attachment: ludovic_granjon.vcf>>
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
