Re: [Geotools-devel] UOM rescaling and DPI

2010-06-17 Thread Andrea Aime
Milton Jonathan ha scritto: > Hello again > > Oh, I was just thinking about it theoretically, and trying to spare a > separate rescaling phase. > > Probably it's not practical, but my view is that if people are not using > units like meters or feet but still want the symbolizers to remain the

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-17 Thread Milton Jonathan
Hello again Oh, I was just thinking about it theoretically, and trying to spare a separate rescaling phase. Probably it's not practical, but my view is that if people are not using units like meters or feet but still want the symbolizers to remain the same size on paper (or on screen), regardl

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-17 Thread Jody Garnett
Just a quick note Andrea: The solution I mentioned used for uDig right now was not done with UOM in mind; I would like to set up something consistent at the geotools level and not have to make use of workarounds outside of the core renderer. I view that visitor that udig provides to rescale th

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-17 Thread Andrea Aime
Andrea Aime ha scritto: > Andrea Aime ha scritto: >> That is problematic as they just know what the target printing dpi is. >> I'm also asking the MapServer folks about what they do (e.g., if there >> is a WMS parameter to do that, if they have, I'd prefer to just >> align with theirs). >> In the m

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-17 Thread Andrea Aime
Andrea Aime ha scritto: > That is problematic as they just know what the target printing dpi is. > I'm also asking the MapServer folks about what they do (e.g., if there > is a WMS parameter to do that, if they have, I'd prefer to just > align with theirs). > In the mapfile they basically specify t

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-17 Thread Andrea Aime
Jody Garnett ha scritto: > On 17/06/2010, at 5:37 PM, Andrea Aime wrote: > >> Jody Garnett ha scritto: >>> DPI is an indication of pixels per inch; a ratio we can then go >>> on to use to base line our configuration; when outputting >>> results. To be explicit: - For a symbol size specified in pix

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-17 Thread Jody Garnett
On 17/06/2010, at 5:37 PM, Andrea Aime wrote: > Jody Garnett ha scritto: >> DPI is an indication of pixels per inch; a ratio we can then go on to >> use to base line our configuration; when outputting results. >> To be explicit: - For a symbol size specified in pixels; I expect it >> to shrink to

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-17 Thread Andrea Aime
Jody Garnett ha scritto: > Hi Andrea: > > I have been loath to enter this discussion as I quickly get confused > between the different points of view (indeed most of the time reading > these emails it sounds like you are both saying the same thing). > > There is a style visitor used by uDig to ad

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-17 Thread Jody Garnett
Hi Andrea: I have been loath to enter this discussion as I quickly get confused between the different points of view (indeed most of the time reading these emails it sounds like you are both saying the same thing). There is a style visitor used by uDig to adjust a style to respect the current

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-16 Thread Andrea Aime
Milton Jonathan ha scritto: > Hey there > > Hmm, I guess I see what you mean, although I feel like it is just a > different way of seeing things. > > Let's see: > > > symbolizers to have the same size. However on the screen 50 pixels > > are long X, whilst when printed the are long just X/3 b

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-16 Thread Milton Jonathan
Hey there Hmm, I guess I see what you mean, although I feel like it is just a different way of seeing things. Let's see: > symbolizers to have the same size. However on the screen 50 pixels > are long X, whilst when printed the are long just X/3 because the > priter can cram a lot more pixel

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-16 Thread Andrea Aime
Milton Jonathan ha scritto: > Hello Andrea > > I don't have any code around me right now, but I can tell you my > understanding of this topic: > - DPI should affect the pixels/meter ratio (map scale). > - Symbolizers given in meters should not change apparent size when DPI > varies, as the size

Re: [Geotools-devel] UOM rescaling and DPI

2010-06-16 Thread Milton Jonathan
Hello Andrea I don't have any code around me right now, but I can tell you my understanding of this topic: - DPI should affect the pixels/meter ratio (map scale). - Symbolizers given in meters should not change apparent size when DPI varies, as the size of the map in meters also remains the same

[Geotools-devel] UOM rescaling and DPI

2010-06-16 Thread Andrea Aime
Hi, I'm looking into exposing the DPI setting as part of the GeoServer WMS request, mostly so that people can get images to send to a printer with a certain DPI. (note: the streaming renderer already takes a hint allowing to specify the DPI) What I expect to see is that the symbolizers sizes in