-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
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).
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels