[geotk] Re: Get envelope for a scale

johann sorel johann.sorel at geomatys.fr
Mon Sep 7 06:05:19 EDT 2009


Use the invert value :

1 / 4.2744...

which gives you something like 1 : 23560

Theuns Heydenrych wrote:
> Thanks Martin
>
> I have set the Objective CRS now to EPSG:3395, and all the units are 
> now in meter.
> When zoomed out to to the extend like in the attached map in the 
> previous mail i get the scale as 4.274483560268723E-5.
> How to i translate this number to 1:xxx xxx format?
> What exactly does this number mean, is it the size of a pixel 
> representing one meter?
>
> Theuns
>
>
>
> On Mon, Sep 7, 2009 at 9:58 AM, Martin Desruisseaux 
> <martin.desruisseaux at geomatys.fr 
> <mailto:martin.desruisseaux at geomatys.fr>> wrote:
>
>     Hello Theuns
>
>     Theuns Heydenrych a écrit :
>
>         I am using a shape file of Africa, and when i display the
>         whole of Africa , i get a scale result of 4.758333333333334
>
>
>     This is the kind of number that we get when the objective CRS is a
>     GeographicCRS (latitude/longitude). Is the the case there? The
>     code that I posted was assuming a ProjectedCRS.
>
>            Martin
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit
>   



More information about the Geotoolkit mailing list