For many years I had been hearing about spatial databases. I knew that some of the frustrating issues I was dealing with as the GIS specialist for small environmental consulting companies could be addressed with the technology. But consulting is all about billable hours and its really hard to convince your boss to give you the unbillable time needed to figure it all out. And its really hard and probably unethical to expect a client to let you figure it all out on their dime. So until a few years ago I kept chugging away with single-user file-based data storage and wasted an enormous amount of time managing data and people to prevent conflicts that could have easily been prevented with a spatial database. Continue reading “Getting started with PostGIS”
Adding Legends to your Leaflet Web Map
I’ve just added a bonus lecture to my course on client side programming with Leaflet. I had a student ask about creating legends for Leaflet maps and I agreed that this was an important missing piece that I had neglected in the main part of the course. I want this course to be comprehensive and so my intention is to continue adding and updating content as needed to provide the best value for my students. Continue reading “Adding Legends to your Leaflet Web Map”
Spatial analysis in Leaflet with Turf.js (Part 3 – Line intersection)
In this video I demonstrate how to use Turf.js to return the intersection of lines and polygons. There is not a straightforward way to perform this analysis in Turf.js but Turf.js is better thought of as a toolbox than a packaged solution. And turf.js does provide a number of tools that can be used in conjunction to perform this analysis. Continue reading “Spatial analysis in Leaflet with Turf.js (Part 3 – Line intersection)”
Spatial Analysis in Leaflet using Turf.js (Part 2)
In this video I demonstrate how to use Turf.js to summarize the characteristics of the points inside a polygon using the turf collect method and discuss a couple other relevant methods in turf for dealing with point in polygon type analyses. Continue reading “Spatial Analysis in Leaflet using Turf.js (Part 2)”
New Course! Leaflet.js client-side programming.
Display and analyze GIS data on the web with Leaflet.js. For FREE!!!!
This course is available now on Udemy.com. It will show you how to add a web map to a web page using Leaflet.js including
- Geolocation methods
- Native and plugin map controls
- Base maps
- Adding raster data
- Vector layers
- Group layers
- Native leaflet styling options
- Plugin styling options
- Loading GeoJSON files
- Searching
- Filtering
- Nearest feature
- Geoprocessing with Turf.js
Continue reading “New Course! Leaflet.js client-side programming.”
Leaflet Basemaps
One of the reasons to use Leaflet as your JavaScript mapping API is the large number of basemaps available.
This includes very useful basemaps, showing streets, topography, cities, borders, aerial imagery, etc. that you can overlay your data on.
There are also a number of fun and artistic basemaps available, such as the heavy metal themed Spinal Map, artistic water color maps, old-timey pioneer themed maps, and others.
You can see a live version of about 20 of these basemaps at https://millermountain.com/basemap/.
Spatial Analysis in Leaflet using Turf.js
This video explains the basics of Turf.js. Turf.js is a spatial analysis library for JavaScript. You can use Turf.js in web mapping applications to create buffers, intersect and union polygons, dissolve on attributes, perform spatial joins, and much more. Continue reading “Spatial Analysis in Leaflet using Turf.js”
Filtering data in Leaflet
This video shows an example of how to filter data in Leaflet using HTML radio buttons to make a selection. This is analagous to using a definition query in ArcGIS or a filter feature in QGIS. We are limiting which data is included in a feature group based on its attributes. Continue reading “Filtering data in Leaflet”
Displaying YOUR GIS data in a leaflet map (pt 2 – lines and polygons)
This video shows how to load your line and polygon GIS data into a leaflet web map, This requires using the Leaflet.Ajax plug-in. I also demonstrate the basics of styling and filtering line and polygon data. Continue reading “Displaying YOUR GIS data in a leaflet map (pt 2 – lines and polygons)”
Displaying YOUR GIS data in a leaflet web map (pt 1- Points)
This video shows how to export your GIS data to a GeoJSON text file and load it into a leaflet web map, This requires using the Leaflet.Ajax plug-in. I also demonstrate the basics of styling and filtering point data. Continue reading “Displaying YOUR GIS data in a leaflet web map (pt 1- Points)”