Add NOAA Raster Nautical Charts
Brought to you by:
r_x
Can this be added in the next release? NOAA RNC (Raster Nautical Charts)
/**
NOAA RNC from example:
Input parameters for this script: "zoom", "x" and "y"
**/
String getTileUrl( int zoom, int x, int y ) {
return "https://tileservice.charts.noaa.gov/tiles/50000_1/" + zoom + "/" + x + "/" + y + ".png";
}
void addHeaders( java.net.HttpURLConnection conn) {
// Optional: set HTTP Referer or Cookies
conn.addRequestProperty("Cookie","test=12345");
conn.addRequestProperty("Referer","https://tileservice.charts.noaa.gov");
}
tileType = "png"; // required - image format "png" "jpg" or "gif"
// Default size of each tile is 256x256 pixel
tileSize = 256; // optional
minZoom = 3; // optional
maxZoom = 16; // optional
tileUpdate = TileUpdate.None; // optional - possibilities:
// TileUpdate.IfNoneMatch, TileUpdate.ETag, TileUpdate.IfModifiedSince, TileUpdate.LastModified, TileUpdate.None
Technically it seems to match the map source requirement. Therefore only the "legal" part is missing:
Before a map source can be officially added to MOBAC I need that a statement from someone official from NOAA that they allow me to integrate this map source into MOBAC.
Please try to establish a contact at NOAA and ask them for such a statement.