Message posté par : dave31
----------------------------------------
Bonsoir,
Dans la balise path, le style déclaré semble prendre le dessus sur les classes.
De plus, il manque le point virgule à la fin des 3 classes.
ça fonctionne sans le style dans la balise path
-----------------
Code :
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="SVGStyle.css" type="text/css"?><svg
xmlns="http://www.w3.org/2000/svg" version="1.2"
baseProfile="tiny" xml:space="preserve"
style="shape-rendering:geometricPrecision; fill-rule:evenodd;"
width="3.61mm" height="1.96mm" viewBox="-1.8 -0.16 3.61
1.96">
<title>EMAREMG1</title>
<desc>Embedded symbol</desc>
<metadata>
<iho:S100SVG
xmlns:iho="http://www.iho.int/SVGMetadata">
<iho:Description iho:publisher="IHB"
iho:creationDate="2014-06-09" iho:source="S52Preslib4.0"
iho:format="S100SVG" iho:version="0.1"/>
</iho:S100SVG>
</metadata>
<style>
.layout {display:none}
.symbolBox {stroke:black;stroke-width:0.32;}
.svgBox {stroke:blue;stroke-width:0.32;}
.pivotPoint {stroke:red;stroke-width:0.64;}
.sl {stroke-linecap:round;stroke-linejoin:round;}
.f0 {fill:none;}
.sCHMGD {stroke:#C045D1;stroke-width:0.32;}
</style>
<rect class="symbolBox layout" fill="none" x="-1.64"
y="0" height="1.64" width="3.29"/>
<rect class="svgBox layout" fill="none" x="-1.64"
y="0" height="1.64" width="3.29"/>
<path d=" M -1.64,0 L 0.01,1.64 L 1.65,0" class="sl f0
sCHMGD"/>
<circle class="pivotPoint layout" fill="none" cx="0"
cy="0" r="1"/>
</svg>
-----------------
ou tous les styles dans la balise path
-----------------
Code :
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="SVGStyle.css" type="text/css"?><svg
xmlns="http://www.w3.org/2000/svg" version="1.2"
baseProfile="tiny" xml:space="preserve"
style="shape-rendering:geometricPrecision; fill-rule:evenodd;"
width="3.61mm" height="1.96mm" viewBox="-1.8 -0.16 3.61
1.96">
<title>EMAREMG1</title>
<desc>Embedded symbol</desc>
<metadata>
<iho:S100SVG
xmlns:iho="http://www.iho.int/SVGMetadata">
<iho:Description iho:publisher="IHB"
iho:creationDate="2014-06-09" iho:source="S52Preslib4.0"
iho:format="S100SVG" iho:version="0.1"/>
</iho:S100SVG>
</metadata>
<style>
.layout {display:none}
.symbolBox {stroke:black;stroke-width:0.32;}
.svgBox {stroke:blue;stroke-width:0.32;}
.pivotPoint {stroke:red;stroke-width:0.64;}
.sl {stroke-linecap:round;stroke-linejoin:round;}
.f0 {fill:none;}
.sCHMGD {stroke:#C045D1;}
</style>
<rect class="symbolBox layout" fill="none" x="-1.64"
y="0" height="1.64" width="3.29"/>
<rect class="svgBox layout" fill="none" x="-1.64"
y="0" height="1.64" width="3.29"/>
<path d=" M -1.64,0 L 0.01,1.64 L 1.65,0" class="sl f0 sCHMGD"
style="stroke-width:0.32;stroke:#C045D1;fill:none;stroke-linecap:round;stroke-linejoin:round;"
/>
<circle class="pivotPoint layout" fill="none" cx="0"
cy="0" r="1"/>
</svg>
-----------------
----------------------------------------
Le message est situé
https://georezo.net/forum/viewtopic.php?pid=342631#p342631
Pour y répondre : qgis_fr(a)ml.georezo.net ou reply de votre messagerie
Pour vous désabonner connectez-vous sur le forum puis Profil / Abonnement
--
Association GeoRezo - le portail géomatique
https://georezo.net