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
75fcf6e1
Commit
75fcf6e1
authored
Jun 04, 2018
by
Emmanuel René Huchim Puc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show shapes description
parent
34cbd991
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
3 deletions
+47
-3
0006_polygon_description.py
catalog/migrations/0006_polygon_description.py
+20
-0
0007_polygon_source.py
catalog/migrations/0007_polygon_source.py
+20
-0
models.py
catalog/models.py
+2
-0
dataRetrieval.js
catalog/static/js/dataRetrieval.js
+2
-2
views.py
catalog/views.py
+3
-1
db.sqlite3
db.sqlite3
+0
-0
No files found.
catalog/migrations/0006_polygon_description.py
0 → 100644
View file @
75fcf6e1
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-04 16:16
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'catalog'
,
'0005_polygon_wkt_polygon'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'polygon'
,
name
=
'description'
,
field
=
models
.
TextField
(
default
=
''
,
verbose_name
=
'Description'
),
),
]
catalog/migrations/0007_polygon_source.py
0 → 100644
View file @
75fcf6e1
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-04 18:37
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'catalog'
,
'0006_polygon_description'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'polygon'
,
name
=
'source'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
50
,
verbose_name
=
'Source'
),
),
]
catalog/models.py
View file @
75fcf6e1
...
...
@@ -13,4 +13,6 @@ class Platform(models.Model):
class
Polygon
(
models
.
Model
):
name
=
models
.
CharField
(
verbose_name
=
"Polygon Name"
,
max_length
=
50
)
json_info
=
models
.
TextField
(
verbose_name
=
"JSON Info"
,
default
=
''
)
description
=
models
.
TextField
(
verbose_name
=
"Description"
,
default
=
''
)
source
=
models
.
CharField
(
verbose_name
=
"Source"
,
max_length
=
50
,
default
=
''
)
wkt_polygon
=
models
.
TextField
(
default
=
''
)
catalog/static/js/dataRetrieval.js
View file @
75fcf6e1
...
...
@@ -32,10 +32,10 @@ var makeRequest = function (value) {
'</div>'
+
'<div class="box-body">'
+
'<span class="pol-body">'
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
+
polygon
.
description
+
'</span><br>'
+
'<div class="pol-src">'
+
'Fuente:
INEGI.'
+
'Fuente:
'
+
polygon
.
source
+
'</div>'
+
'</div>'
+
'</div>'
+
...
...
catalog/views.py
View file @
75fcf6e1
...
...
@@ -142,7 +142,9 @@ class SearchSubmitView(View):
'city'
:
polygonInfo
[
'properties'
][
'NOMGEO'
],
'state'
:
polygonInfo
[
'properties'
][
'ENT_NAME'
],
'geojson'
:
polygonInfo
,
'wkt_polygon'
:
polygon
.
wkt_polygon
'wkt_polygon'
:
polygon
.
wkt_polygon
,
'description'
:
polygon
.
description
,
'source'
:
polygon
.
source
})
# context = {
...
...
db.sqlite3
View file @
75fcf6e1
No preview for this file type
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