[fixed] NOAA ENC Charts problem and a fix
Posted: Sat Aug 19, 2023 6:52 pm
I've been using AQ with NOAA ENC nautical charts (depth in feet) for a while. They recently stopped working. I assumed it was yet another server changing the rules, which happens a lot in the world of maps.
After looking into it I found that things still worked correctly for depths in meters. The only difference is an extra "display_params" value which specifies depth units. It is not used for meters since that is the default. The display_params syntax uses 3 levels of nested curly braces and another level of square braces, characters which can cause problems in a URL.
I modified the .aqx file to escape the braces (e.g. %7B for '{') and it works fine. Best guess is that newer server software got a bit more picky about URL syntax. I also changed the display_params version to the latest, which is 10.9.1. I don't know how community maps are maintained, but it does need to be updated. The URL for fathoms needs the same fix.
If you do it as an end user, be sure not to change the CDATA square braces, which are valid XML syntax or the $bbox curly braces, which are the AQ parameter substitution syntax.
After looking into it I found that things still worked correctly for depths in meters. The only difference is an extra "display_params" value which specifies depth units. It is not used for meters since that is the default. The display_params syntax uses 3 levels of nested curly braces and another level of square braces, characters which can cause problems in a URL.
I modified the .aqx file to escape the braces (e.g. %7B for '{') and it works fine. Best guess is that newer server software got a bit more picky about URL syntax. I also changed the display_params version to the latest, which is 10.9.1. I don't know how community maps are maintained, but it does need to be updated. The URL for fathoms needs the same fix.
If you do it as an end user, be sure not to change the CDATA square braces, which are valid XML syntax or the $bbox curly braces, which are the AQ parameter substitution syntax.