chronhq / backend

Backend for database. Python, Django, PostGIS
https://maps.chron.ist/
GNU General Public License v3.0
6 stars 1 forks source link

Update docker structure #223

Closed MiklerGM closed 4 years ago

MiklerGM commented 4 years ago

To access frontend visit default URL http://localhost:3080/

  1. Added couple models and scripts to generate MVT for STVs and store them in PostGIS. I've tried to use them, but it is slower than tippecanoe. I would prefer to keep it anyway.
  2. Added on-the-fly MVT generation for STVs, for admin interface (for selected TEs or STVs). So there would be no delay between uploading new geometry and showing it in tiles for admin interface. (It works fast because of limited number of STVs)
  3. Bash Scripts for MVT generation with tippecanoe were changed, to have a single entry point.
  4. Special command to fix data across antimeridian (180th and -180th meridians) Remember invalid MVT from postgis? They were invalid because polygons had poins over antimeridian as for example (http://bit.ly/38R3hct) (180.0003, 74). As far as I understood, it is a valid geometry, but not for some calculations. So I've splitted it across two lines (+-180,90), (+-180, -90)
  5. Change subtraction (for overlaps) from geos to postgis with smart filter on small features (to prevent empty polygons with ghost lines)
  6. Check for bounds to prevent webmercator files without specified CRS from being uploaded.
  7. New models for colorscheme (map colors).
  8. notipsta - small script in nodejs to run tippecanoe and show it's status via HTTP query
  9. various changes in make file and docker files
  10. Changed nginx configuration to serve frontend, access for api, mbtiles and notipsta
MiklerGM commented 4 years ago

bors try

bors[bot] commented 4 years ago

try

Build failed

MiklerGM commented 4 years ago

bors try

MiklerGM commented 4 years ago

bors try

bors[bot] commented 4 years ago

try

Already running a review

MiklerGM commented 4 years ago

@ataalik @whirish please review

ataalik commented 4 years ago

bors r+

bors[bot] commented 4 years ago

Build succeeded

bors[bot] commented 4 years ago

try

Merge conflict