TileMaker is currently working with some minor faults but needs to:
The following minor issues from PH’s development notes will be explained properly, reviewed and then categorised:
These will need to use a suitable projection within bounds and also be translated to the desired place. i.e. using proj4 in Node.
Note: no bounding box (bbox) in tiles.
MS Sahsuland projection problem; must be fully contained within the projection or area calculations and intersections will fail. This needs to be detected. Currently geography datatype caluclates area wrong even after the polygon has been reorientated (i.e. follow the right hand rule). The script: area_check.sql fails on SQL Server at this point. PostGIS will complain:
transform: couldn’t project point (-77.0331 -12.1251 0): latitude or longitude exceeded limits (-14)
PostGIS, SQL Server and PROJ.4 (i.e. the projection file) does not have these bounds. Each projection’s bounds are unique, and are traditionally published by the authority that designed the projection. One of the primary sources for this data is from https://www.epsg-registry.org. This would require an additional table.
So it is not easy to check if the geometry not within projected bounds, although possible.
Restrict geolevels to a minimum 3, or more if the total topojson_size < ~20-30M (possibly browser dependent).