This document introduces building a web GIS application using GeoDjango and Leaflet. It discusses prerequisites like Python, PostgreSQL with PostGIS, Django, and Leaflet. It describes using GDAL to generate Django models from spatial data and LayerMapping to load the data. It shows configuring the Django project and creating an application to handle the spatial data. Finally, it demonstrates serving the spatial data via GeoJSON to Leaflet maps in the web application's frontend.
FOSS4G 2017 Boston LocationTech; Big Data at the Heart of Geospatial InnovationMarc Vloemans
The rapid growth of Big Data (sensors, satellites, social networking) poses challenges to make the plethora of data more actionable intelligent: to process, monitor, manage, interpret and edit. As most information is tied to a location the geospatial information processing and management faces the same challenges regarding the trinity 'volume, velocity and variability'. Effectively the limits of traditional open spatial software components and tools have been reached. Thus necessitating cloud-based, distributed solutions.
In a relatively short time the Eclipse Working Group LocationTech has become the home for the much needed Big Geospatial Data innovation. Projects like GeoMesa, GeoWave, GeoTrellis, GeoGig and others enable temporal-spatial solutions for IoT, Automated Car, Earth Observation, Precision Agriculture, Disaster Management etc.
Please, check us out at www.locationtech.org or follow us on Twitter @locationtech
Django is a open source framework written in Python, was designed to save Web developers time and money by promoting the idea of reusing code and avoiding replication. As with any language, programmers interviewing for a job involving Django are going to face a series of specialized questions.
FOSS4G 2017 Boston LocationTech; Big Data at the Heart of Geospatial InnovationMarc Vloemans
The rapid growth of Big Data (sensors, satellites, social networking) poses challenges to make the plethora of data more actionable intelligent: to process, monitor, manage, interpret and edit. As most information is tied to a location the geospatial information processing and management faces the same challenges regarding the trinity 'volume, velocity and variability'. Effectively the limits of traditional open spatial software components and tools have been reached. Thus necessitating cloud-based, distributed solutions.
In a relatively short time the Eclipse Working Group LocationTech has become the home for the much needed Big Geospatial Data innovation. Projects like GeoMesa, GeoWave, GeoTrellis, GeoGig and others enable temporal-spatial solutions for IoT, Automated Car, Earth Observation, Precision Agriculture, Disaster Management etc.
Please, check us out at www.locationtech.org or follow us on Twitter @locationtech
Django is a open source framework written in Python, was designed to save Web developers time and money by promoting the idea of reusing code and avoiding replication. As with any language, programmers interviewing for a job involving Django are going to face a series of specialized questions.
You've got GeoServer running and you've loaded some data that users can consume. Now what? For many users, GeoServer is only used to serve rendered map images, but in this workshop, attendees will learn about some of the features that GeoServer that are often overlooked. The specific topics that will be covered include: - updating data on the server using WFS-T - Web Processing Service for server-side geospatial analysis - rendering transforms to dynamically transform your data into heatmaps - filtering data based on user input - using SQL Views with GeoServer - working with time-enabled data Each of these skills can be applied to making beautiful and dynamic web applications powered by GeoServer. This workshop will assume that you are familiar with basic GeoServer concepts and interaction, such as how to load and publish a shapefile.
Leo Hsu and Regina Obe
We'll demonstrate integrating PostGIS in both PHP and ASP.NET applications.
We'll demonstrate using the new PostGIS 1.5 geography offering to extend existing web applications with proximity analysis.
More advanced use to display maps and stats using OpenLayers, WMS/WFS services and roll your own WFS like service using the PostGIS KML/GML/and or GeoJSON output functions.
Enhancing usability and utility of USGS 3D Elevation Program (3DEP) lidar dat...OpenTopography Facility
The 3D Elevation Program, managed by the US Geological Survey, is acquiring quality level 2 or better light detecting and ranging (lidar) data over the conterminous United States, Hawaii, and US Territories to meet the growing need for high-resolution 3-D representations of Earth's surface, vegetation, and constructed features.
OpenTopography, supported by the USGS Community for Data Integration (CDI) program, is developing well-documented and customizable Jupyter Notebook-based Python workflows for programmatically accessing, processing, and visualizing 3DEP data products for a variety of use-cases geared toward USGS applications and for users of point cloud data across the geospatial community.
Presented by Cole Speed at 2022 July ESIP Meeting.
Geopaparazzi: Never Out of Data in the Field
The workshop is dedicated to professionals that needs to collect data from the field and use this information to update or create GIS data, but also to OpenStreetMappers as well as tourists that want to keep a geo-diary. Geopaparazzi is a mobile application for digital field mapping for Android devices developed to support the work of the technicians in the field offering a mapping environment with real time GPS position and a form for structured data collection. The application is easy to use, intuitive and provides just few important functionalities to be used in the field, as for example register GPS tracks and take georeferenced notes and pictures with the possibility to work also off line. The main features available in Geopaparazzi are: - taking georeferenced notes: texts, pictures, sketches and forms - logging GPS tracks - browsing and navigation of the maps and the available data - easy export of the collected data - simple preparation of custom background data. The map view shows the GPS position on the reference background data with the possibility to pan and zoom. From the map view it is possible to add and manage notes and bookmarks and measure distances. Notes and bookmarks can be added directly to the map either in the GPS position or in the center of the map. From a dedicated list view it is possible to visualize, zoom and edit each note. Background data can be personalized using available local data or on-line services with the possibility to use vector offline Mapsforge basemaps, Mbtiles offline databases, TMS (online and offline tiles) and WMS services. Geopaparazzi supports personalized complex forms with combo and check boxes, text fields (that can be constrained to number or string type), pictures (taken using the mobile internal camera) and sketches organized over multiple tabs. The workshop starts with an introduction of the application, installation and main features. Then a short section will be dedicated to the preparation of the input data: background maps and vector layers. Following these sections there is a practical testing of Geopaparazzi outdoor in the field. The last section, back in the room, is dedicated to the export of the collected data to be visualized or used in other GIS environments.
Patrick Chanezon and Guillaume Laforge are presenting Google App Engine Java and Gaelyk, the lightweight groovy toolkit on top of the GAE SDK, at the Devoxx conference
This is an inspirational lightning talk on how developers can take on the future with Google Cloud and other non-Cloud Google tools. It presents various application ideas that are meant to both inspire what's possible as well as show what some of those tools could be.
A talk about the OSGeo Live project; covering 43 projects that are available in a live DVD format (for you to run without installing). The project is much improved with OGC documentation and a description of many of the projects. New this year (thanks to some sponsorship) is quickstarts for several of the projects.
This presentation introduces open source, open source GIS, OSGeo. This talk was given to the people who attended 'Capacity Building For National Surveying and Geographic Information Institute' program.
Rapid Application Development on Google App Engine for JavaKunal Dabir
When you need to build and host web application as soon as possible with no cost involved and want no nonsense stuff to come in between, glide can come handy.
You've got GeoServer running and you've loaded some data that users can consume. Now what? For many users, GeoServer is only used to serve rendered map images, but in this workshop, attendees will learn about some of the features that GeoServer that are often overlooked. The specific topics that will be covered include: - updating data on the server using WFS-T - Web Processing Service for server-side geospatial analysis - rendering transforms to dynamically transform your data into heatmaps - filtering data based on user input - using SQL Views with GeoServer - working with time-enabled data Each of these skills can be applied to making beautiful and dynamic web applications powered by GeoServer. This workshop will assume that you are familiar with basic GeoServer concepts and interaction, such as how to load and publish a shapefile.
Leo Hsu and Regina Obe
We'll demonstrate integrating PostGIS in both PHP and ASP.NET applications.
We'll demonstrate using the new PostGIS 1.5 geography offering to extend existing web applications with proximity analysis.
More advanced use to display maps and stats using OpenLayers, WMS/WFS services and roll your own WFS like service using the PostGIS KML/GML/and or GeoJSON output functions.
Enhancing usability and utility of USGS 3D Elevation Program (3DEP) lidar dat...OpenTopography Facility
The 3D Elevation Program, managed by the US Geological Survey, is acquiring quality level 2 or better light detecting and ranging (lidar) data over the conterminous United States, Hawaii, and US Territories to meet the growing need for high-resolution 3-D representations of Earth's surface, vegetation, and constructed features.
OpenTopography, supported by the USGS Community for Data Integration (CDI) program, is developing well-documented and customizable Jupyter Notebook-based Python workflows for programmatically accessing, processing, and visualizing 3DEP data products for a variety of use-cases geared toward USGS applications and for users of point cloud data across the geospatial community.
Presented by Cole Speed at 2022 July ESIP Meeting.
Geopaparazzi: Never Out of Data in the Field
The workshop is dedicated to professionals that needs to collect data from the field and use this information to update or create GIS data, but also to OpenStreetMappers as well as tourists that want to keep a geo-diary. Geopaparazzi is a mobile application for digital field mapping for Android devices developed to support the work of the technicians in the field offering a mapping environment with real time GPS position and a form for structured data collection. The application is easy to use, intuitive and provides just few important functionalities to be used in the field, as for example register GPS tracks and take georeferenced notes and pictures with the possibility to work also off line. The main features available in Geopaparazzi are: - taking georeferenced notes: texts, pictures, sketches and forms - logging GPS tracks - browsing and navigation of the maps and the available data - easy export of the collected data - simple preparation of custom background data. The map view shows the GPS position on the reference background data with the possibility to pan and zoom. From the map view it is possible to add and manage notes and bookmarks and measure distances. Notes and bookmarks can be added directly to the map either in the GPS position or in the center of the map. From a dedicated list view it is possible to visualize, zoom and edit each note. Background data can be personalized using available local data or on-line services with the possibility to use vector offline Mapsforge basemaps, Mbtiles offline databases, TMS (online and offline tiles) and WMS services. Geopaparazzi supports personalized complex forms with combo and check boxes, text fields (that can be constrained to number or string type), pictures (taken using the mobile internal camera) and sketches organized over multiple tabs. The workshop starts with an introduction of the application, installation and main features. Then a short section will be dedicated to the preparation of the input data: background maps and vector layers. Following these sections there is a practical testing of Geopaparazzi outdoor in the field. The last section, back in the room, is dedicated to the export of the collected data to be visualized or used in other GIS environments.
Patrick Chanezon and Guillaume Laforge are presenting Google App Engine Java and Gaelyk, the lightweight groovy toolkit on top of the GAE SDK, at the Devoxx conference
This is an inspirational lightning talk on how developers can take on the future with Google Cloud and other non-Cloud Google tools. It presents various application ideas that are meant to both inspire what's possible as well as show what some of those tools could be.
A talk about the OSGeo Live project; covering 43 projects that are available in a live DVD format (for you to run without installing). The project is much improved with OGC documentation and a description of many of the projects. New this year (thanks to some sponsorship) is quickstarts for several of the projects.
This presentation introduces open source, open source GIS, OSGeo. This talk was given to the people who attended 'Capacity Building For National Surveying and Geographic Information Institute' program.
Rapid Application Development on Google App Engine for JavaKunal Dabir
When you need to build and host web application as soon as possible with no cost involved and want no nonsense stuff to come in between, glide can come handy.
2. PREAMBLE
• Why FOSS?
• Embracing FOSS role in GIS/GIT and education domains.
• Sustainable Development Goals (SDGs) and Geospatial technology.
joehene@gmail.com GIS Day 2016
3. PREREQUISITES
• Python with pip or easy_install.
• PostgreSQL with PostGIS support.
• Django, django-leaflet, django-geojson, psycopg2, gdal (installed into virtual environment
using pip or easy_install).
• Code editor (Notepad++ or SublimeText preferred)
joehene@gmail.com GIS Day 2016
4. WHAT IS DJANGO?
• Free an Open Source (FOSS) web application framework, written in Python programming
language.
• Django grew from real-world applications developed in Lawrence, Kansas City in 2003,
growing popular in 2005 and released publicly in 2005.
• 1.0 version released in 2008, current version ==1.10
joehene@gmail.com GIS Day 2016
5. DJANGO CONCEPT
• HTTP in, HTTP out
HTTP Request HTTP Response
URLs
VIEWS
Models
Templates
joehene@gmail.com GIS Day 2016
6. DJANGO MVC / MVT ARCHITECTURE
• Django is designed to enhance loose-coupling and strict separation between a web
application constituents promoting easy customization of web application part(s) without
affecting others.
• M – Model
• V –View
• C – Controller / T -Template
joehene@gmail.com GIS Day 2016
7. WHAT IS LEAFLET?
• LEAFLET is an Open Source JavaScript Library for interactive maps.
• Supports mobile mapping and can be extended through use of plugins.
• It takes advantage of HTML5 and CSS3 on browsers.
• Source code can be obtained from http://github.com/Leaflet/Leaflet
• Leaflet API has ‘Map’ as the central class and is used to create a map on a page and
manipulate it.
joehene@gmail.com GIS Day 2016
12. SETTINGS.PY
• DEBUG is a boolean that turns on/off the debug mode of the project. If set to
True, Django will display detailed error pages when an uncaught exception
is thrown by your application.
• ALLOWED_HOSTS is not applied while debug mode is on or when running tests
• INSTALLED_APPS is a setting you will have to edit in all projects.This setting tells Django which
applications are active for this site. By default, Django includes the following applications:
joehene@gmail.com GIS Day 2016
13. SETTINGS.PY (CONT…)
• django.contrib.admin:This is an administration site.
• django.contrib.auth:This is an authentication framework.
• django.contrib.contenttypes:This is a framework for content types.
• django.contrib.sessions:This is a session framework.
• django.contrib.messages:This is a messaging framework.
• django.contrib.staticfiles:This is a framework for managing static files.
• leaflet: Allows use of leaflet in our Django project.
• djgeojson: allows (de)serialization (Geo)django objects into GeoJSON.
• onyeshamap: This is application created for purposes of this project.
joehene@gmail.com GIS Day 2016
17. GDAL (LAYER MAPPING)
• Inspects the given OGR-compatible data source (e.g., a shapefile) and outputs a GeoDjango
model with the given model name. In this example: ./manage.py ogrinspect
onyeshamap/data/CCTV_locations.shp CCTV ---srid=32737 –mapping –multi
• Makes use of positional arguments which are
~ data_source – path to the data source
~ model_name – name of the model to be created
~ SRID – Spatial Reference Identifier
~ mapping - Generate mapping dictionary for use with `LayerMapping`
joehene@gmail.com GIS Day 2016
25. DEMO
• Performed in Ubuntu Linux Desktop 14.04LTS operating system
• DataVisualization in Q-GIS
• Django production server start
• Django-Leaflet web application showcase
joehene@gmail.com GIS Day 2016