[OpenMap Users] Discovering the minimum scale at which an RPF layer will show

From: Laura Paterson <laura.paterson_at_generaldynamics.uk.com>
Date: Thu, 3 Mar 2005 10:48:42 -0000

Hi,

I want to automatically zoom into areas of interest on my map, but only to
the level where I have either ASRP or CADRG showing.

However, I can't work out how to get the minimum scale from the layers...

I use the following code to discover the minimum scale that will result in
CADRG showing at that point:

                float minScale = Float.MAX_VALUE;
                Layer[] layers = layerHandler.getMapLayers();
                for (int i = 0; i < layers.length; i++) {
                    if (layers[i] instanceof RpfLayer) {
                        float minRPFScale =
layers[i].getProjection().getMinScale();
                        minScale = Math.min(minScale, minRPFScale);
                        System.out.println(layers[i].getName() + " minScale
= "+minScale);
                    }
                }

My CADRG prints that its minimum scale is 500.0, however, on the map it does
not show at all until 1:125K. Using the CADRG coverage tool, it reports
that at this point I have TPC (1:500K) and ONC (1:1M) , I also have other
data that shows at higher scales, which is not reported by the coverage
tool.

Does anyone have any ideas what's going on? Does the 500.0 representing
500,000? If so, is the scale always factored by one thousand? Or is there
another way to discover the minimum showing scale...?

Thanks!

Laura
This email and any files attached to it are of a confidential nature and
intended for the exclusive use of the individual or entity to whom they are
addressed. If you are not the intended recipient, please be advised that you
have received this email in error and action should be taken to inform the
originator and this email should be deleted immediately and any copies made
should be destroyed. If you are not the intended recipient, any form of
disclosure, distribution, printing, copying or any other use of this email
or the information in it or in any attachments is strictly prohibited and
may be unlawful. Any views, opinions or other information expressed in the
email and any attachments are those of the originator and not given or
endorsed by General Dynamics UK Ltd.In compliance with the various
Regulations and Acts, please be aware that General Dynamics UK Ltd reserves
the right to monitor all emails and email attachments, both inbound and
outbound, allowing legitimate business practice to continue.In addition to
monitoring, General Dynamics UK Ltd also provides appropriate Antivirus
measures scanning all incoming and outgoing email and email attachments.
However, email communications cannot be guaranteed to be secure or free of
errors as information may be intercepted, corrupted, amended, lost,
destroyed or contain viruses. General Dynamics UK Ltd do not accept
liability or responsibility for any such matters or the consequences
thereof.

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Mar 03 2005 - 05:49:49 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT