[Mapserver-users] Mapserver 4.1 (dev) and SVG output problem
yuth hor
mofumyke at yahoo.com
Tue Feb 3 03:30:51 PST 2004
--0-1781808144-1075807851=:12079
Content-Type: text/plain; charset=us-ascii
Hi all,
I have tried to generate the SVG file from mapserver, first, I use Redhat 9 + Mapserver 4.1 (nightly build (27.01.04)
So, My results are:
1. It was ok with the shp file in UTM
2. It had a problem with a shp file in Lat Lon (because the SVG file that returned from Mapserver is Integer value not floating point)
Here is the result SVG from Mapserver;
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"
>
<!-- flip the y coordinates so that the map orientation matches the graphic orientation -->
<svg viewBox="135.000000 -49.000000 149.000000 -35.000000">
<desc>Generated by MapServer</desc>
<defs>
<style type="text/css">
<![CDATA[
.point { fill:black;stroke:black }
.line { fill:none;stroke:black }
.poly { cursor:pointer;fill:#003366;stroke:#999999;stroke-width:0.1 }
]]>
</style>
</defs>
<!-- features to follow -->
<!-- this is the start of a layer -->
<g class="poly">
<path id="[CTY_FIPS]" d="M 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33M 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34M 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33M 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33M 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33M 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33M 132 -33 132 -33 132 -#12539;#12539;#12539;#12539;.142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -45 142 -45 142 -45 142 -45 142 -45 142 -45 142 -45 142 -45 142 -45 142 -45">
</path>
</g>
<!-- this is the end of a layer -->
<script>
<![CDATA[
]]>
</script>
</svg>
Anyone can guide me?
Thank you very much in advanced,
Teerayut
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
--0-1781808144-1075807851=:12079
Content-Type: text/html; charset=us-ascii
<DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">Hi all,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"> <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">I have tried to generate the SVG file from mapserver, first, I use Redhat 9 + Mapserver 4.1 (nightly build (27.01.04) <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"> <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">So, My results are:<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes"> </SPAN>1. It was ok with the shp file in UTM<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes"> </SPAN>2. It had a problem with a shp file in Lat Lon (because the SVG file that returned from Mapserver is Integer value not floating point)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">Here is the result SVG from Mapserver;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><?xml version="1.0" encoding="iso-8859-1" standalone="no"?><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><!-- flip the y coordinates so that the map orientation matches the graphic orientation --><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><svg viewBox="135.000000 -49.000000 149.000000 -35.000000"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><desc>Generated by MapServer</desc><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><defs><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><style type="text/css"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><![CDATA[<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">.point { fill:black;stroke:black }<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">.line { fill:none;stroke:black }<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">.poly { cursor:pointer;fill:#003366;stroke:#999999;stroke-width:0.1 }<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">]]><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"></style><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"></defs><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><!-- features to follow --><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><!-- this is the start of a layer --><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><g class="poly"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><path id="[CTY_FIPS]" d="M 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33M 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34 132 -34M 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33M 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33M 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33M 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33 132 -33M 132 -33 132 -33 132 -・・・・.142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142 -44 142
-45 142 -45 142 -45 142 -45 142 -45 142 -45 142 -45 142 -45 142 -45 142 -45"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"></path><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"></g><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><!-- this is the end of a layer --><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><script><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes"> </SPAN><![CDATA[<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes"> </SPAN>]]><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes"> </SPAN></script><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"></svg><SPAN style="mso-tab-count: 1"> </SPAN><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">Anyone can guide me?<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">Thank you very much in advanced,<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0mm 0mm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'MS Pゴシック'; mso-font-kerning: 0pt">Teerayut<o:p></o:p></SPAN></P></DIV></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! SiteBuilder - Free web site building tool. <a href="http://us.rd.yahoo.com/evt=21608/*http://webhosting.yahoo.com/ps/sb/"><b>Try it!</b></a>
--0-1781808144-1075807851=:12079--
More information about the MapServer-users
mailing list