Re: [OpenMap Users] CADRG/CTLM Map Help

From: Don Dietrick <dietrick_at_bbn.com>
Date: Tue, 15 Nov 2005 16:52:42 -0500

Hi Chris,
  Can you run with the -Ddebug.rpfdetail flag set? I'm interested to
see how the file system thinks the files should be listed in the
A.TOC file, and how they actually are. That debug flag should show
if the layer can't find the files it's expecting to.

- Don


On Nov 15, 2005, at 4:28 PM, Chris Allport wrote:

> Thanks for the advice, but this made no apparent difference.
>
> The CD was copied to C:\main\rpf. A.TOC and CTLM50 are both in the
> "rpf"
> folder, "CT50Z02" is in the CTLM50 folder, and the data is in the
> "CT50Z02"
> folder.
>
> The original A.TOC file was restored.
>
> Scale is set to 1:50,000.
>
> This is what RpfLayer shows when debug is turned on:
>
> RPF|RpfLayer: Creating cache!
> RpfCacheHandler: Created with cache size of 1
> RPF|RpfLayer.prepare(): calling getRectangle with projection: CADRG[
> spps_x=642120.1493322162 spps_y=849586.8879362546 x_pix=4034560.0
> y_pix=1334528.0 oy=0 ul(-320,570077) world(4034560,2669056)
> radius=6378137.0
> ppm=3272 center(38.429543,-77.089096) scale=50000.0
> maxscale=3.85066656E8
> minscale=500.0 width=640 height=480] ul =
> LatLonPoint[lat=38.44575,lon=-77.117645] lr =
> LatLonPoint[lat=38.41338,lon=-77.06055]
> RpfCacheManager - for:
> lat[0] 38.44575
> lon[0] -77.117645
> lat[1] 38.41338
> lon[1] -77.06055
> lat[2] 38.41338
> lon[2] -77.06055
> lat_minus = 2
> lon_minus = 2
> RpfCacheHandler: Need new Coverage.
> RpfFrameCacheHandler: getCoverage()
> RpfCacheManager: main (1) cache used.
> RpfCacheManager: show maps: true, showInfo: false
> RpfCacheManager: done.
> RPF|RpfLayer.prepare(): calling getRectangle with projection: CADRG[
> spps_x=642120.1493322162 spps_y=849586.8879362546 x_pix=4034560.0
> y_pix=1334528.0 oy=0 ul(-395,570109) world(4034560,2669056)
> radius=6378137.0
> ppm=3272 center(38.429543,-77.089096) scale=50000.0
> maxscale=3.11952736E8
> minscale=500.0 width=790 height=544] ul =
> LatLonPoint[lat=38.44791,lon=-77.12434] lr =
> LatLonPoint[lat=38.41122,lon=-77.05385]
> RpfCacheManager - for:
> lat[0] 38.44791
> lon[0] -77.12434
> lat[1] 38.41122
> lon[1] -77.05385
> lat[2] 38.41122
> lon[2] -77.05385
> lat_minus = 2
> lon_minus = 2
> RpfCacheHandler: Need new Coverage.
> RpfFrameCacheHandler: getCoverage()
> RpfCacheManager: main (1) cache used.
> RpfCacheManager: show maps: true, showInfo: false
> RpfCacheManager: done.
> RpfLayer.paint()
> RpfLayer.paint()
> ...
>
>
> Chris
>
>
>
>
> -----Original Message-----
> From: Don Dietrick [mailto:dietrick_at_bbn.com]
> Sent: Tuesday, November 15, 2005 4:10 PM
> To: Chris Allport
> Cc: OpenMap Users
> Subject: Re: [OpenMap Users] CADRG/CTLM Map Help
>
> Hi Chris,
>
> You don't have to regenerate the A.TOC file just to view the data.
> You only need to re-generate the A.TOC file if you have combined RPF
> data from different sources into a single directory, or have removed
> directories from an RPF directory, and you want a new one reflecting
> the files that are actually there. You can also point the RpfLayer
> to the RPF directory on the CDROM if you just want to take a look at
> the data without copying to the hard drive.
>
> You should be able to view TLM files, at 1:50,000 scale.
>
> Also, the top-level directory holding the A.TOC file should be called
> RPF.
>
> - Don
>
> On Nov 15, 2005, at 3:00 PM, Chris Allport wrote:
>
>> I have two cdroms full of raster maps. Looking at one of the
>> disks, I have an A.TOC and a CTLM50 folder. Under the CTLM50
>> folder, there is a CT50Z02 folder, and under that is a large list
>> of files (.TL2).
>>
>>
>>
>> For some reason, I cannot get these maps to display on my RPF
>> layer. I have used MakeToc to regenerate the A.TOC file, verified
>> that all files are uppercase, moved the CT50Z02 folder up a level
>> (and regenerated the TOC). In my application, I have changed the
>> scale and nothing seems to work.
>>
>>
>>
>> Debug for RPF is turned on and updates with each new zoom/recenter
>> event. There are no obvious messages indicating a problem.
>>
>>
>>
>> Here is how the RPF Layer is setup:
>>
>>
>>
>> String temp[] = {config.pathToRPFData};
>>
>> RpfLayer rpfLayer = new RpfLayer(temp);
>>
>> rpfLayer.setVisible(true);
>>
>> rpfLayer.setAddAsBackground(true);
>>
>> mapHandler.add(rpfLayer);
>>
>>
>>
>> I do have some other RPF data that does show up using this code.
>> However, it only seems to display the following products: CGNC,
>> CJNC, CJGA, CTPC. There is some other data (CIB, CTLM, CONC, CLFC)
>> that it does seem to access (I renamed the files without
>> regenerating the A.TOC and never received an error while zooming in/
>> out).
>>
>>
>>
>> Thanks to all in advance!
>>
>>
>>
>> Chris
>>
>>
>>
>>
>>
>> <image001.gif>
>>
>> Chris Allport
>> Senior Engineer
>> 21789 North Coral Dr., Ste-1A
>> Lexington Park, MD 20653
>> (301) 904-5943
>> 301) 737-1457 Fax
>> (301) 904-5943 Mobile
>> www.dtiweb.net
>> callport_at_dtiweb.net
>>
>>
>>
>>
>
>
>
> --
> [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"]

--
[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 Tue Nov 15 2005 - 16:53:05 EST

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