Re: [Geotools-gt2-users] Calculate Scale

2008-12-18 Thread Michael Bedward
2008/12/19 Preciado Venero, Abel : > Hey, my problem is to calculate scale to press zoom-in, zoom -out. > > To init application i am calculate the current scale. to press zoom-in i > have calculate the current scale. ReferencedEnvelope env = myMapContext.getLayerBounds(); try { AffineTransform

Re: [Geotools-gt2-users] Calculate Scale

2008-12-18 Thread apreciado
Hey, my problem is to calculate scale to press zoom-in, zoom -out. To init application i am calculate the current scale. to press zoom-in i have calculate the current scale. how i can make? apreciado wrote: > > Hey, i am a problem to calculate scale. the method to calculate scale in > Render

Re: [Geotools-gt2-users] Calculate Scale

2008-12-18 Thread Michael Bedward
Hello, Do you want the scale itself, or do you want to convert between map and screen coordinates ? For example, to display the cursor position in map coordinates... If the latter, have a look at RendererUtilities.worldToScreenTransform() Michael 2008/12/18 apreciado : > > Hey, i am a problem

[Geotools-gt2-users] Calculate Scale

2008-12-18 Thread apreciado
Hey, i am a problem to calculate scale. the method to calculate scale in RendererUtilities have the params ReferencedEnvelope envelope, int imageWidth, int imageHeight, double DPI. The envelope is getContext().getLayerBounds() o getContext().getAreaOfInterest() ? What is