CRIME APP
Carlos Herrera - Esri Spain
CARLOS
HERRERA
EXPÓSITO
Ingeniero Técnico en Topografía
GIS Courses
Esri Spain GIS Master
Developer in Esri Spain
CRIME APP
WORK
TOOLS
ArcMap
PyScripter
Brackets
ArcGIS Server
ArcGIS Online
Web AppBuilder
PROJECT
Analysis
Objectives
What I need?
Analysis
EEUU is the reference
- Compstat
- CrimeView (The Omega Group)
- CrimeStat
- RCAGIS
UK
Spain
- SIGPOL
- CISEM &Policía Municipal Madrid
- iPol
Objectives
Web App
Analysis and prevention of crime
Query builder
Tools
- Heatmap
- Density points
- Hot/cold spot
SIMPLE AND EASY TO USE
What I need?
Administrative regions
POI's
Security
INCIDENTS
DATA
DATA
SOLUTION
Simulate data
PYTHON
CREATE DATA
PYTHON
Create Random Point
Add fields
Fill fields
import random
import time
import datetime
def strTimeProp(start, end, format, prop):
stime = time.mktime(time.strptime(start, format))
etime = time.mktime(time.strptime(end, format))
ptime = stime + prop * (etime - stime)
return time.strftime(format, time.localtime(ptime))
def randomDate(start, end, prop):
return strTimeProp(start, end, '%d-%m-%Y %H:%M:%S %A', prop)
GEOPROCESSING
Query Builder
Hot/Cold Spot
VERSIONING
GDB Enterprise
- Default version
- Edit version
Only one user
PUBLISHING
SERVICES
Map Services
- Incidents
- Administrative regions
ArcGIS Server
Geoprocess
PUBLISHING
SERVICES
Map Services
- Citizen Security
- POI'S
ArcGIS Online
Edit layer
DEVELOPING
CRIME APP
Aplication
structure
Aplication
structure
{
"uri": "widgets/ZoomSlider/Widget",
"position": {
"left": 25,
"top": 405,
"relativeTo": "map"
},
"version": "1.4",
"id": "widgets_ZoomSlider_Widget_22",
"name": "ZoomSlider",
"label": "Control deslizante de zoom"
},
{
"uri": "widgets/HomeButton/Widget",
"position": {
"left": 25,
"top": 485,
"relativeTo": "map"
},
"id": "widgets_HomeButton_Widget_23",
"name": "HomeButton",
"label": "Botón de inicio"
},
config.json
Chrome
Inspector
ANALYSIS
MODE
Widgets
Query Builder
Geoprocessing widget WAB
What? When? Where?
Query Builder
Input parameters
- Incident
- Year
- Range date
- District
- Neighborhood
Out parameters
- Layer result
Google Street
View
Bookmarks
PREVENTION
MODE
Widgets
Previous
notes
Structure & Lifecycle
Previous
notes
Structure & Lifecycle
Demographic
information
- Add feature layer
- Simbology for feature layer -> Renderer
- Add Feature layer to map
- Popup
-
Functions:
- "Mouse-out" -> CloseDialog
-
"Mouse-over"
- Popup content
- Draw geometry
Heatmap
Input parameters
-
Incident
- <select>...</select>
-
Year
- <select>...</select>
-
Magnitude
- <input type="checkbox" ...>
-
Blur radius, Max value, Min value
- <input type="range" ...>
Heatmap
- Add feature layer
- Create renderer -> Heatmap renderer
-
Create events for sliders:
- "Listener"
- myFunction
Statistics
- Add feature layer -> Barrios Madrid (GeoEnrichment AGOL)
-
Point Simbology
- Point -> Green
- Circle -> Orange
-
"Click" event -> function getPoint
- Params: "Incident" and "Year"
- Calculate statistics in selected field by params
- Query
- Buffer --> Geometry Engine
- Draw buffer -> Graphic
- Show statistics
Hot/Cold
Spots
Geoprocessing widget WAB
Edit
Geoprocessing widget WAB
QUESTIONS?
carlosherrera151@gmail.com
carlosherreraexposito@gmail.com
Crime APP
By carlosherrera4
Crime APP
- 289