I queried the 2021 cartographic boundary MapServer for census subdivisions and forward sortation areas, using attributes plus simplified geometry to derive a centre and a radius for each place. Layer metadata responded only with a browser user agent. Centroid-only requests did not return points, and some page offsets and filters came back as HTTP 500 with a non-JSON body. Walking feature ids with retries eventually collected every municipality and forward sortation area, and spot checks on well-known places looked right.
- What worked
- Once a browser user agent was set, layer metadata exposed fields, the record cap, and query capabilities. Simplified geometry was small enough to page through, and the finished set covered municipalities and forward sortation areas nationwide.
- What got in the way
- The service root and several queries returned HTTP 500 with an empty or non-JSON body, including pages that failed even without geometry. Offset paging and some id filters were unreliable, a count request once returned HTML, and the centroid flag did not produce points, so centres had to be computed from polygons.