Skip to content

Commit

Permalink
Añadido nuevo servidor de tiles para viirs
Browse files Browse the repository at this point in the history
Añadido requirements.txt
  • Loading branch information
frasanz committed Sep 24, 2024
1 parent d70ccac commit 2f7e419
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
5 changes: 4 additions & 1 deletion frontend/templates/task2.html
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,10 @@ <h3>Lost at night</h3>



viirs = L.tileLayer('http://development.ibercivis.es:8001/{z}/{x}/{y}.png', {
viirs = L.tileLayer('http://lostatnight.org:8001/{z}/{x}/{y}.png', {
//viirs = L.tileLayer('https://gibs.earthdata.nasa.gov/wmts/epsg3857/best/VIIRS_Black_Marble/default/2016-01-01/GoogleMapsCompatible_Level8/{z}/{x}/{y}.png', {
//viirs = L.tileLayer('https://earthengine.googleapis.com/v1/projects/ee-pmisson/maps/7f05e1c56c7139d418df9f275abae720-880cdb032adeb5dabd4855934e8d1764/tiles/{z}/{x}/{y}', {
//viirs = L.tileLayer('https://earthengine.googleapis.com/v1/projects/ee-pmisson/maps/7f05e1c56c7139d418df9f275abae720-880cdb032adeb5dabd4855934e8d1764/tiles/{z}/{x}/{y}', {
maxZoom: 12,
transparent: true,
tms: 1,
Expand Down
2 changes: 1 addition & 1 deletion georeferencing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def patch(self, request, pk=None):

# Second command: gdalwarp
# Check the # of points before enable tps (-order n to pylynomial)
command = 'gdalwarp -r bilinear -tps -t_srs EPSG:4326'
command = 'gdalwarp --config NUM_THREADS 4 -multi -r bilinear -tps -t_srs EPSG:4326'
command += ' georeferenced/' + geoattemp.image.name + geoattemp.hash + '.tif'
command += ' georeferenced/' + geoattemp.image.name + geoattemp.hash + '.tif'
print(command)
Expand Down
16 changes: 16 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
asgiref==3.8.1
beautifulsoup4==4.12.3
Django==4.2.11
django-bootstrap-v5==1.0.11
djangorestframework==3.15.1
drf-yasg==1.21.7
fontawesomefree==6.6.0
inflection==0.5.1
packaging==24.0
pillow==10.2.0
pytz==2024.1
PyYAML==6.0.1
soupsieve==2.6
sqlparse==0.4.4
typing_extensions==4.10.0
uritemplate==4.1.1

0 comments on commit 2f7e419

Please sign in to comment.