Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
f1713129
Commit
f1713129
authored
Mar 20, 2019
by
Emmanuel René Huchim Puc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show scl
parent
900e7c34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
6 deletions
+65
-6
aside.html
reports/templates/aside.html
+58
-4
views.py
reports/views.py
+7
-2
No files found.
reports/templates/aside.html
View file @
f1713129
...
...
@@ -175,12 +175,66 @@
TCI
</label>
</div>
<!-- <div class="form-check">
<input class="form-check-input" type="checkbox" name="layer_type" value="SCL" id="sclcheck">
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
name=
"layer_type"
value=
"SCL_0"
id=
"sclcheck"
>
<label
class=
"form-check-label"
for=
"sclcheck"
>
SCL No Data
</label>
</div>
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
name=
"layer_type"
value=
"SCL_1"
id=
"sclcheck"
>
<label
class=
"form-check-label"
for=
"sclcheck"
>
SCL Saturated
</label>
</div>
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
name=
"layer_type"
value=
"SCL_2"
id=
"sclcheck"
>
<label
class=
"form-check-label"
for=
"sclcheck"
>
SCL Shadows
</label>
</div>
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
name=
"layer_type"
value=
"SCL_3"
id=
"sclcheck"
>
<label
class=
"form-check-label"
for=
"sclcheck"
>
SCL Cloud Shadows
</label>
</div>
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
name=
"layer_type"
value=
"SCL_4"
id=
"sclcheck"
>
<label
class=
"form-check-label"
for=
"sclcheck"
>
SCL Vegetation
</label>
</div>
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
name=
"layer_type"
value=
"SCL_5"
id=
"sclcheck"
>
<label
class=
"form-check-label"
for=
"sclcheck"
>
SCL Not-Vegetated
</label>
</div>
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
name=
"layer_type"
value=
"SCL_6"
id=
"sclcheck"
>
<label
class=
"form-check-label"
for=
"sclcheck"
>
SCL Water
</label>
</div>
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
name=
"layer_type"
value=
"SCL_7"
id=
"sclcheck"
>
<label
class=
"form-check-label"
for=
"sclcheck"
>
SCL
SCL
Unclassified
</label>
</div> -->
</div>
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
name=
"layer_type"
value=
"SCL_8"
id=
"sclcheck"
>
<label
class=
"form-check-label"
for=
"sclcheck"
>
SCL Clouds
</label>
</div>
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
name=
"layer_type"
value=
"SCL_9"
id=
"sclcheck"
>
<label
class=
"form-check-label"
for=
"sclcheck"
>
SCL Snow
</label>
</div>
</span>
</ul>
</li>
...
...
reports/views.py
View file @
f1713129
...
...
@@ -264,10 +264,15 @@ def wsProcessProgress(request):
# tiles
def
tiles
(
request
,
purchase_id
,
report
,
layer_type
,
date
,
z
,
x
,
y
):
image_path
=
"{}{}/{}/out/{}/{}/tiles/{}_TCI_60m/{}/{}/{}.png"
.
format
(
USERS_PATH
,
request
.
user
.
email
,
purchase_id
,
report
,
layer_type
,
date
,
z
,
x
,
y
split
=
'/split'
if
layer_type
[:
3
]
==
"SCL"
else
''
layer_class
=
layer_type
[
3
:]
if
layer_type
[:
3
]
==
"SCL"
else
''
image_path
=
"{}{}/{}/out/{}/{}{}/tiles/{}_{}_60m{}/{}/{}/{}.png"
.
format
(
USERS_PATH
,
request
.
user
.
email
,
purchase_id
,
report
,
layer_type
[:
3
],
split
,
date
,
layer_type
[:
3
],
layer_class
,
z
,
x
,
y
)
print
(
os
.
path
.
exists
(
image_path
))
if
not
os
.
path
.
exists
(
image_path
):
# raise Http404
return
HttpResponse
(
None
,
content_type
=
"image/png"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment