I join my minimum mapfile. Thanks Alan Le 19/08/2011 15:34, Ludovic Granjon a écrit :
Yes no problem http://pastebin.com/fPz6qgXx ThanksLe 19/08/2011 15:17, Alan Boudreault a écrit :Paste your mapfile on pastebin.com if you can. Alan On August 19, 2011 08:40:39 am Ludovic Granjon wrote:Thanks AlanYes that's what I try to do but when I try to launch xmlstarlet I alwayshave 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. Youcan 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 totry? Is there a documentation ? I tried unsuccessfully http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile Thanks Ludovic_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
<?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"> <extent>-7.745328 42.136123 10.892048 51.323191</extent> <imageColor red="255" green="255" blue="255"/> <imageType>png</imageType> <Layer name="srtm" type="RASTER" status="DEFAULT"> <connection>http://iceds.ge.ucl.ac.uk/cgi-bin/icedswms?</connection> <connectionType>WMS</connectionType> <Metadata> <item name="wms_srs">EPSG:4326</item> <item name="wms_onlineresource">srtm</item> <item name="wms_server_version">1.1.1</item> <item name="wms_name">srtm</item> <item name="wms_format">image/jpeg</item> </Metadata> </Layer> <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></scaleDenom> --> <ScaleBar> <align>CENTER</align> <color red="244" green="43" blue="22"/> <imageColor red="0" green="255" blue="255"/> <intervals>5</intervals> <outlineColor red="12" green="45" blue="12"/> </ScaleBar> <shapePath>/home/anr_care/donnees</shapePath> <size x="800" y="800"/> <symbolSet>example.sym</symbolSet> <Web> <imagePath>tmp/</imagePath> <imageUrl>tmp/</imageUrl> </Web> </Map>
<<attachment: ludovic_granjon.vcf>>
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users