Skip to content

Incorrect north west latitude of RpfCoverageBox #47

@mg629

Description

@mg629

I am converting CADRG to TMS and in the method makeTiles of MapTileMaker, I am getting back an incorrect north west latitude for the RpfCoverageBox but am not sure why.

public Rectangle2D makeTiles(RpfLayer rpfLayer) {
final Proj proj = new Mercator(new LatLonPoint.Double(), 50000, TILE_SIZE, TILE_SIZE);

   Vector<RpfCoverageBox> coverage = rpfLayer.getFrameProvider().getCoverage(90f, -180f, -90f, 180f, proj);
   
   for (RpfCoverageBox box : coverage) {
         // nw_lat value is coming out as 64.0046 when it should be 65.25
         nw_lat = box.nw_lat; (64.0046)
         
         // the following values are coming out correct I believe
         nw_lon = box.nw_lon; (-151.266)
         se_lat = box.se_lat; (59.861)
         se_lon = box.se_lon; (-143.77) 
   }

}

I have attached the CADRG specs from the A.TOC files at each level (50, 100, 250).
alaska_large_250_atoc
alaska_large_100_atoc
alaska_large_50_atoc
At this time I am not able to upload the full CADRG folders and files but might be able to do so in pieces if its needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions