<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<pre>AsSVG() is already right for conversion! You have nothing to do for
conversion...
Don't forget to see postgis doc: <a class="moz-txt-link-freetext" href="http://postgis.refractions.net/docs/ch06.html">http://postgis.refractions.net/docs/ch06.html</a> (assvg)
CONVERSION EXAMPLES:
===================
For polygon
===========
use "<path d='.... ...'/>"
astext | assvg
--------------------------------------------------+-----------------------------------------
MULTIPOLYGON(((6 2,22 20,60 22,81 30,81 2,6 2))) | M 6 -2 22 -20 60 -22 81 -30 81 -2 6 -2
MULTIPOLYGON(((2 83,55 83,55 28,2 28,2 83))) | M 2 -83 55 -83 55 -28 2 -28 2 -83
for point
==========
U should have to sepcifiy assvg(the_geom,0) or assvg(the_geom,1)
if assvg(the_geom,0) ===> use "<circle ..../ r='?' />"
astext | assvg
--------------+------------------
POINT(10 70) | cx="10" cy="-70"
POINT(30 30) | cx="30" cy="-30"
if assvg(the_geom,1) ===> use "<text .... />"
astext | assvg
--------------+----------------
POINT(10 70) | x="10" y="-70"
POINT(30 30) | x="30" y="-30"
</pre>
<pre>ViewBox:
========
U have to give a correct viewbox in your svg:</pre>
<pre>
<font color="#0000ff">< svg width="Xpx"
height="0?px" viewBox="1? 2? 3? 4?" ></font></pre>
<pre><font color="#0000ff">How to?</font></pre>
<pre class="moz-signature" cols="72">
Suppose width="Widthpx" so
do
select extent(the_geom) from table
will give U
extent
-------------------------
BOX(Xmin Ymin,Xmax Ymax)
A B C D
then use this formula
<font color="#0000ff">0 := |Ymax-Ymin|* Width / |Xmax-Xmin|
1 := Xmin
2 := -Xmax
3 := |Xmax-Xmin|
4 := |Ymax-Ymin|
with |a| = max{0,-a,a}
</font>
--david;
-------------------------------------------------
Jean David TECHER
e-mail: davidtecher(at)yahoo(dot)fr
site: <a class="moz-txt-link-freetext" href="http://techer.pascal.free.fr/postgis/">http://techer.pascal.free.fr/postgis/</a>
-------------------------------------------------
</pre>
<pre>
</pre>
<pre>Thanos Fakiolas a écrit :</pre>
<blockquote cite="midBAY113-F38E1C05F8AFF344C33984D8B590@phx.gbl"
type="cite">
<pre>so can i do something so the coordinates will be right as svg?
</pre>
<pre>
</pre>
<blockquote type="cite">
<pre>From: david techer <a class="moz-txt-link-rfc2396E" href="mailto:davidtecher@yahoo.fr"><davidtecher@yahoo.fr></a>
</pre>
<pre>Reply-To: <a class="moz-txt-link-abbreviated" href="mailto:davidtecher@yahoo.fr,PostGIS">davidtecher@yahoo.fr,PostGIS</a> Users Discussion
<a class="moz-txt-link-rfc2396E" href="mailto:postgis-users@postgis.refractions.net"><postgis-users@postgis.refractions.net></a>
</pre>
<pre>To: PostGIS Users Discussion <a class="moz-txt-link-rfc2396E" href="mailto:postgis-users@postgis.refractions.net"><postgis-users@postgis.refractions.net></a>
</pre>
<pre>Subject: Re: [postgis-users] assvg problem
</pre>
<pre>Date: Fri, 11 Nov 2005 23:00:47 +0100
</pre>
<pre>
</pre>
<pre>
</pre>
<pre>
</pre>
<pre>
</pre>
<pre>
for GIS System coordinates is like:
</pre>
<pre>
Y
</pre>
<pre>
/|\
</pre>
<pre>
|
</pre>
<pre>
|
</pre>
<pre>
|
</pre>
<pre>
-----------------------------> X
</pre>
<pre>
</pre>
<pre>For SVG image system is like
</pre>
<pre>
-------------------------> X
</pre>
<pre> |
</pre>
<pre> |
</pre>
<pre> |
</pre>
<pre> |
</pre>
<pre>\|/
</pre>
<pre> Y
</pre>
<pre>
Example: so GIS Point(10 13) becames SVG Point(10 -13) (cx='10' cy='-13')
</pre>
<pre>
So coordinates are negative
</pre>
<pre>--david;
</pre>
<pre>-------------------------------------------------
</pre>
<pre>Jean David TECHER
</pre>
<pre>e-mail: davidtecher(at)yahoo(dot)fr
</pre>
<pre>site: <a class="moz-txt-link-freetext" href="http://techer.pascal.free.fr/postgis/">http://techer.pascal.free.fr/postgis/</a>
</pre>
<pre>-------------------------------------------------
</pre>
<pre>
</pre>
<pre>
</pre>
<pre>
Thanos Fakiolas a écrit :
</pre>
<pre>
</pre>
<pre>i'm trying to extract a europe map via the assvg function
</pre>
<pre>
</pre>
<pre>buth for the countries i get a path with negative coordinates!
</pre>
<pre>
</pre>
<pre>
what is wrong?
</pre>
<pre>
</pre>
<pre>
plz help
</pre>
<pre>
</pre>
<pre>
_________________________________________________________________
</pre>
<pre>
</pre>
<pre>Express yourself instantly with MSN Messenger! Download today - it's FREE!
</pre>
<pre><a class="moz-txt-link-freetext" href="http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/">http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/</a>
</pre>
<pre>
</pre>
<pre>
_______________________________________________
</pre>
<pre>
</pre>
<pre>postgis-users mailing list
</pre>
<pre>
</pre>
<pre><a class="moz-txt-link-abbreviated" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>
</pre>
<pre>
</pre>
<pre><a class="moz-txt-link-freetext" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a>
</pre>
<pre>
</pre>
<pre>
</pre>
<pre>
</pre>
<pre>
</pre>
<pre>
</pre>
<pre>
</pre>
<pre>___________________________________________________________________________
</pre>
<pre>Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
</pre>
<pre>Téléchargez cette version sur <a class="moz-txt-link-freetext" href="http://fr.messenger.yahoo.com">http://fr.messenger.yahoo.com</a>
</pre>
</blockquote>
<pre>
</pre>
<blockquote type="cite">
<pre>_______________________________________________
</pre>
<pre>postgis-users mailing list
</pre>
<pre><a class="moz-txt-link-abbreviated" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>
</pre>
<pre><a class="moz-txt-link-freetext" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a>
</pre>
</blockquote>
<pre>
_________________________________________________________________
</pre>
<pre>Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. <a class="moz-txt-link-freetext" href="http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963">http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963</a>
</pre>
<pre>
_______________________________________________
</pre>
<pre>postgis-users mailing list
</pre>
<pre><a class="moz-txt-link-abbreviated" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>
</pre>
<pre><a class="moz-txt-link-freetext" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a>
</pre>
<pre>
</pre>
</blockquote>
</body>
</html>
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com