RE: [svg-developers] real world unit vs screen resolution or display device

2005-02-07 Thread =?iso-8859-1?Q?Barend_K=F6bben?=

I am sorry to see that you got surprised by it, but please note that it's NOT 
an SVG issue, it's true for any screen-drawing...

If you state that mm (...) must be displayed exactly so on the
screen - independent of the screen resolution or the display device, you are 
asking an impossible thing. 

It might calculate how many pixels theoreticaaly would go into a mm if the 
screen is supposed to have a 72 dpi resolution, but how is the application to 
know how big a pixel REALLY is on your screen...? It might be able (depending 
on the OS and so on) to find out to what resolution your graphics card is set 
and maybe even how large the screen is supposed to be, but as soon as 
somebody fiddles for example with the screen controls and changes the 
horizontal or vertical sync, or connects another type of monitor, the size of 
you rectangle would change!



Barend Köbben
International Institute for Geo-information Sciences and  Earth Observation 
(ITC)
PO Box 6, 7500AA Enschede (The Netherlands)
ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 
_

-Original Message-
From: kanmac1 [mailto:[EMAIL PROTECTED] 
Sent: Monday, 07 February 2005 11:53
To: svg-developers@yahoogroups.com
Subject: [svg-developers] real world unit vs screen resolution or display device



Hi all,

PLS HELP!!!

we've got a major problem with SVGs. It may have an absolutely
distroying impact on our application. We use Adobe SVG Viewer 3.0 in
the IE6.0.
Our charts have fixed width and height given in real world units (like
mm or px, - whatever) and they must be displayed exactly so on the
screen - independent of the screen resolution or the display device
parameters. Look at this.

svg width=200mm height=200mm viewBox=0 0 200 200
rect x=50 y=50 width=100 height=100 style=fill:red/
/svg

I expected the ASV to show me always!!! a rectangle which is 10cm wide
and 10 cm high and which starts exactly 5cm (on x-axis and y-axis)
from the (0,0) point of the SVG coordinate system.

If I display it on my monitor in the 1280x1024 resolution it looks
pretty well. But if I change the resolution to 800x600 I see my rect
has nothing to do with the dimensions I expected :( It's been a BIG
surprise to us for last few days. I went through the SVG1.1. spec but
I can't really get how to make my rect look always same (independent
of the resolution and display device).
I hope it is just a matter of proper setting of width, height and
viewBox attributes on the outer-most svg element. Any help is welcome.
And we need it ASAP.
cheers
Maciek





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links



 





-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [svg-developers] Re: real world unit vs screen resolution or display device

2005-02-07 Thread =?iso-8859-1?Q?Barend_K=F6bben?=

Hi  Maciek
 
 (...) TwipsPerPixel for both vertical and horizontal directions. 
 And it is exactly what I thought.

Hmm, I don't think so. It probably is on most systems quite close to what you 
thought. But even VB on an MS system cannot truly garantuee this in any way. 
If I want i can distort the image on my monitor by twiddling the knobs so that 
it only takes up half the actual screen. Your TWIPS VBA system would not be 
able to know this...
 
And I think that eg. using the same code on a PocketPC platform (PDA), you 
might get quite big differences. 
 
 Another question is: why is this real world unit posibility included
 in the standard if it is not supported at all.
 
That is a very valid question. I cannot see inside the ASV code Adobe uses, but 
I think it does it 'sort of' by estimating what 100 mm might in pixels be. Just 
as the twips measurement in VBA only 'guestimates'...
 
We're having this same discussion often with rprogrammers who want to put a 
scle fraction on screen maps, saying the map is eg. 1:10,000. As a cartographer 
I always advise them to use 'relative' sclaes only, the best one just showing a 
sclae bar that is scaled along with your map and basically says, 'look this is 
what I consider to be xx km on the map':
 
0   20km
|-|
 
(only correct when using a monotype font ;-)
 
 
Barend Köbben 
International Institute for Geo-information Sciences and  Earth Observation 
(ITC) 
PO Box 6, 7500AA Enschede (The Netherlands) 
ph: +31-(0)534874253; fax: +31-(0)534874335 
_ 
 


[Non-text portions of this message have been removed]



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [svg-developers] Save Drawing in mysql 4.1x database

2005-02-03 Thread =?iso-8859-1?Q?Barend_K=F6bben?=

 That's interesting, I do at the moment have a student working on just that 
(only using Java instead of PHP). Our idea is to use an existing svg 
application where you can digitise a polygon , then using postURL in the SVG to 
get that SVG element to a servlet or JSP. This servlet then is going to convert 
the SVG into a SQL statement to be put into the mySQL DB as a Simple Feature 
geometry. We know it should be possible like that, he is now trying to actually 
get it to work. I will keep you informed on how it's going. Mind you, this is a 
student project with a not very fixed deadline, so no guarantees ;-)



Barend Köbben
International Institute for Geo-information Sciences and  Earth Observation 
(ITC)
PO Box 6, 7500AA Enschede (The Netherlands)
ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 
_

-Original Message-
From: Burkhard Stollenwerk [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 03 February 2005 10:28
To: svg-developers@yahoogroups.com
Subject: Re: [svg-developers] Save Drawing in mysql 4.1x database


Hi Barend,

I ´ll save the user drawing in mySQL database by using the new spatial type.
I use Javascript and PHP to do that.


-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [svg-developers] Save Drawing in mysql 4.1x database

2005-02-02 Thread =?iso-8859-1?Q?Barend_K=F6bben?=

Hi Burkhard,
 
do you mean by 'save my drawing (only polygons) to mysql-database' that you 
want the SVG code for drawing the polygons saved in MySQL tables? In that case, 
where does teh SVG drawing code come from in the first place?
 
Or that you want to generate polygons from the MySQL...?
 
Both are doable, but some more details are needed before I can (try to) help 
you.
 
Barend Köbben 
International Institute for Geo-information Sciences and  Earth Observation 
(ITC) 
PO Box 6, 7500AA Enschede (The Netherlands) 
ph: +31-(0)534874253; fax: +31-(0)534874335 
_ 
 


[Non-text portions of this message have been removed]



-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/