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
86898394
Commit
86898394
authored
May 28, 2018
by
Renán Sosa Guillen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sentinel data
parent
d329c7a7
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
97 additions
and
75 deletions
+97
-75
sentinel.py
catalog/apis/sentinel.py
+16
-15
body.css
catalog/static/css/body.css
+23
-0
dataRetrieval.js
catalog/static/js/dataRetrieval.js
+44
-40
base_top.html
catalog/templates/base_top.html
+3
-2
map.html
catalog/templates/map.html
+11
-16
views.py
catalog/views.py
+0
-2
No files found.
catalog/apis/sentinel.py
View file @
86898394
...
...
@@ -11,7 +11,8 @@ class APISentinel():
# "[0 TO 10]" or 95
def
getProducts
(
this
,
area
,
initDate
,
endDate
,
cloudPercentage
):
GeoSentinel_path
=
"/home/emmanuelhp/Documentos/GeoSentinel/geosentinel/APISentinel.py"
GeoSentinel_path
=
"/home/geointdev/sidt-env/GeoSentinel/geosentinel/APISentinel.py"
# GeoSentinel_path = "/home/emmanuelhp/Documentos/GeoSentinel/geosentinel/APISentinel.py"
api
=
imp
.
load_source
(
'geosentinel'
,
GeoSentinel_path
)
sentinel
=
api
.
APISentinel
(
'emmhp'
,
'geoemm29'
)
...
...
catalog/static/css/body.css
View file @
86898394
...
...
@@ -196,4 +196,27 @@ div .polygon-item-data .info .data-info {
div
.item-info-view
.button-add-del
{
padding-left
:
58%
;
}
div
#product-list-globe
{
max-height
:
100px
;
overflow
:
auto
;
}
/*----------product list clases----------*/
div
.sidebar-input
{
border-radius
:
3px
;
border
:
1px
solid
#374850
;
margin
:
10px
10px
;
}
div
.sidebar-input
input
[
type
=
"text"
]
{
color
:
#666
;
border-top-left-radius
:
2px
;
border-top-right-radius
:
0
;
border-bottom-right-radius
:
0
;
border-bottom-left-radius
:
2px
;
box-shadow
:
none
;
background-color
:
#374850
;
border
:
1px
solid
transparent
;
height
:
35px
;
}
catalog/static/js/dataRetrieval.js
View file @
86898394
...
...
@@ -208,6 +208,9 @@ $(document).ready(function () {
if
(
!
PRODUCT_IN_LIST
)
{
console
.
log
(
"DEFS: ahora crea producto"
);
productListGlobe
.
push
(
data
);
data
.
catalog
.
forEach
(
function
(
data
)
{
console
.
log
(
"DD: "
,
data
);
var
product_html
=
'<li id="'
+
data
.
id
+
' class="hover-me">'
+
'<a href="javascript:void(0)">'
+
'<i class="menu-icon glyphicon glyphicon-bookmark bg-red"></i>'
+
...
...
@@ -251,6 +254,7 @@ $(document).ready(function () {
'</li>'
;
$
(
'#product-list-globe'
).
append
(
product_html
);
});
}
}
});
...
...
catalog/templates/base_top.html
View file @
86898394
...
...
@@ -105,7 +105,8 @@
<!-- Home tab content -->
<div
class=
"tab-pane"
id=
"control-sidebar-home-tab"
>
<h3
class=
"control-sidebar-heading"
><b>
Products
</b></h3>
<ul
id=
"product-list-globe"
class=
"control-sidebar-menu"
>
<ul
id=
"product-list-globe"
class=
"control-sidebar-menu"
></ul>
<!-- <li id="me-id">
<a href="javascript:void(0)">
<i class="menu-icon glyphicon glyphicon-bookmark bg-red"></i>
...
...
@@ -190,7 +191,7 @@
</div>
</div>
</div> -->
</ul>
<!-- <h3 class="control-sidebar-heading">Recent Activity</h3>
<ul class="control-sidebar-menu">
...
...
catalog/templates/map.html
View file @
86898394
...
...
@@ -119,12 +119,12 @@
{% block sidebar %}
<div
class=
"form-group "
>
<!-- search form -->
<!-- <form role="form" action="{% url 'search-submit' %}" method="post" class="sidebar-form">
{% csrf_token %}
<form
role=
"form"
action=
"#"
method=
"get"
class=
"sidebar-form"
>
<div
class=
"input-group"
>
<input type="text" id="ajax-input"
list="polygon-list" name="value" class="form-control" placeholder="Search
...">
<input
type=
"text"
id=
"ajax-input"
name=
"value"
class=
"form-control"
placeholder=
"Search region
..."
>
<span
class=
"input-group-btn"
>
<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
<button
type=
"button"
name=
"search"
id=
"search-btn"
class=
"btn btn-flat"
>
<i
class=
"fa fa-eraser"
></i>
</button>
</span>
</div>
...
...
@@ -133,21 +133,12 @@
<ul
id=
"polygon-list"
class=
"no-bullet"
></ul>
</div>
</div>
</form>
-->
</form>
<!-- /search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
<!-- <form role="form" target="catalogFrame" action="{% url 'productList' %}" method="post"> -->
<form
id=
'product-form'
role=
"form"
method=
"post"
>
{% csrf_token %}
<!-- <input type="text" id="ajax-input" name="city" class="ajax-input" placeholder="Search region..."> -->
<div
class=
"input-group"
>
<input
id=
"ajax-input"
type=
"text"
name=
"city"
class=
"form-control"
placeholder=
"Search region..."
>
<span
class=
"input-group-btn"
>
<button
class=
"btn btn-default"
type=
"button"
>
<i
class=
"glyphicon glyphicon-erase"
></i>
</button>
</span>
</div>
<div
class=
"row"
id=
"option-list"
>
<div
class=
"col-12"
>
<ul
id=
"polygon-list"
class=
"no-bullet"
></ul>
...
...
@@ -199,12 +190,16 @@
<span
class=
"label label-primary pull-right"
></span>
</span>
</a>
<input
class=
"treeview-menu sidebar-form"
type=
"text"
name=
"cloudPercentage"
>
<ul
class=
"treeview-menu sidebar-form"
>
<li>
<input
class=
"form-control"
type=
"text"
name=
"cloudPercentage"
>
</li>
</ul>
</li>
<li>
<a
href=
"#"
>
<i
class=
"fa fa-search"
></i>
<a
href=
"#"
>
<span>
<i
class=
"fa fa-search"
></i>
<button
type=
"submit"
name=
"search"
id=
"search-btn"
class=
"btn btn-primary"
>
Search
</button>
<!-- <button name="search" id="search-btn" class="btn btn-primary">Search</button> -->
</span>
...
...
catalog/views.py
View file @
86898394
...
...
@@ -41,7 +41,6 @@ def productList(request):
req
=
dict
(
request
.
POST
)
req
.
pop
(
'csrfmiddlewaretoken'
,
None
)
city_name
=
req
[
'city'
][
0
]
process
=
req
[
'platform'
][
0
]
area
=
req
[
'polygon'
][
0
]
init_date
=
req
[
'start'
][
0
][:
10
]
...
...
@@ -61,7 +60,6 @@ def productList(request):
item_data
=
{
'img'
:
img_preview
,
'city_name'
:
city_name
,
'process'
:
process
,
'start_date'
:
init_date
,
'end_date'
:
end_date
,
...
...
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