Master
'
s Thesis 2006 
FACHHOCHSCHULE
HOCHSCHULE F
U
R
LI Hui 
STUTTGART
TECHNIK
The implementation 
        STUTTGART UNIVERSITY OF APPLIED 
SCIENCES 
3.2.2  View Box 
In  the  SVG  map,  the  viewing  coordinates  information  is  described  by  the  view  box 
coordinates  and  four transformation  parameters  which  are  defined  in  the 
svg
  section 
(see List 10). 
preserveAspectRatio="xMidYMid meet"> 
viewBox =  leftupX  rightdownY viewBox.width viewbox.height  
viewBox.width = rightdownX leftupX   
viewbox.height = rightdownY leftupY 
map scale = Screen.width(mm)/ viewBox.width(m) 
Listing 10:
 Formulary to calculate the map scale 
The principle of this transformation is the coordinates system transformation from the 
view box coordinates system to a geocoded coordinates system. It is a 2 dimensional 
similarity  transformation  (2D  Helmert).  There  are  four  transformation  parameters  in 
this  transformation.  X  shift,  Y  shift,  scale  factor  and  one  rotation  parameter  (see 
Figure 13).   
Y 
X 
X 
Y 
SVG view box 
Fig. 13: 
Coordinates transformed from SVG view box coordinate system to a geocoded 
coordinate system. 
33 




PHP MySql Web Hosting Design and Implement Client Applications PHP MySQL Hosting




 
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.