[postgis-users] assvg problem

Darryl Watson dwatson at roof-express.com
Sat Nov 12 08:45:35 PST 2005


I'm generating my own SVG code but using PostGIS as my datasource, so 
what I do to convert my display to a cartesian coordinate system (with Y 
increasing as we go bottom to top) is to surround my SVG code with a <g 
transform="translate(0, maxy) scale(1, -1)"> tag.

The idea is to move your whole drawing down then flip it over.

The only annoyance with this is that text will appear upside down unless 
you put it in its own layer and perform that same transform on the layer 
first.

Thanos Fakiolas wrote:

> so can i do something so the coordinates will be right as svg?
>
>
>> From: david techer <davidtecher at yahoo.fr>
>> Reply-To: davidtecher at yahoo.fr,PostGIS Users Discussion 
>> <postgis-users at postgis.refractions.net>
>> To: PostGIS Users Discussion <postgis-users at postgis.refractions.net>
>> Subject: Re: [postgis-users] assvg problem
>> Date: Fri, 11 Nov 2005 23:00:47 +0100
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> for GIS System coordinates is like:
>>
>>  Y
>>
>> /|\
>>
>>  |
>>
>>  |
>>
>>  |
>>
>>  -----------------------------> X
>>
>>
>> For SVG image system is like
>>
>>  -------------------------> X
>>  |
>>  |
>>  |
>>  |
>> \|/
>>  Y
>>
>> Example: so GIS Point(10 13) becames SVG Point(10 -13) (cx='10' 
>> cy='-13')
>>
>> So coordinates are negative
>> --david;
>> -------------------------------------------------
>> Jean David TECHER
>> e-mail: davidtecher(at)yahoo(dot)fr
>> site: http://techer.pascal.free.fr/postgis/
>> -------------------------------------------------
>>
>>
>>
>>
>>
>> Thanos Fakiolas a écrit :
>>
>>
>> i'm trying to extract a europe map via the assvg function
>>
>>
>> buth for the countries i get a path with negative coordinates!
>>
>>
>>
>> what is wrong?
>>
>>
>>
>> plz help
>>
>>
>>
>> _________________________________________________________________
>>
>>
>> Express yourself instantly with MSN Messenger! Download today - it's 
>> FREE!
>> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>>
>>
>>
>> _______________________________________________
>>
>>
>> postgis-users mailing list
>>
>>
>> postgis-users at postgis.refractions.net
>>
>>
>> http://postgis.refractions.net/mailman/listinfo/postgis-users
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ___________________________________________________________________________ 
>>
>> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! 
>> Messenger
>> Téléchargez cette version sur http://fr.messenger.yahoo.com
>
>
>
>> _______________________________________________
>> postgis-users mailing list
>> postgis-users at postgis.refractions.net
>> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
> _________________________________________________________________
> Is your PC infected? Get a FREE online computer virus scan from 
> McAfee® Security. 
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>

-- 

Darryl Watson                                                         

Senior Software Developer

 

*Roof Express, LLC*

8310 South Valley Highway

Suite 300

Englewood, CO  80112

 

303.524.1193 (direct)

303.524.1101 (fax)

www.roof-express.com/ <http://www.roof-express.com/>

 




More information about the postgis-users mailing list