![]() (Note: some of the querying and filtering in these examples can be done entirely in SQL, but GeoPandas is used to demonstrate its capabilities) Install and Import Needed Python Libraries Matplotlib - A plotting and visualization library for Python.Extends the popular Pandas library to geospatial data.GeoPandas - An open source Python project for working with geospatial data.Psycopg2 - A PostgreSQL/PostGIS client for Python.A link to the Jupyter notebook in Google Colab is also included, so you can run the code yourself and build upon it. These basic building blocks, combined with a little gumption and googling, can put you well on your way to performing whatever analysis you desire. The rest of this article will walk you through a brief tutorial of how easy it can be to pull SGID data into Python to perform analysis or create simple maps. And if you use a cloud-hosted Jupyter notebook-like Google Colab-you don’t even have to install Python on your computer (or tablet or chromebook)! Python Notebook and Libraries With this route, you don’t need to worry about paying for licensed software or even installing GIS desktop software at all. ![]() The Open SGID also creates an opportunity for users to pull in data and perform analysis using open source software and libraries-like Python. ![]() As the Open SGID has nightly automated updates, tapping into the Open SGID means you’ll have a living connection to the freshest SGID data available. But the recently launched Open SGID is an especially valuable resource because it is a cloud-hosted PostgreSQL PostGIS database that anyone can connect to. Data can now be streamed to clients via web services or can be downloaded in even more formats (e.g., GeoJSON, KML, and CSV). This can still be done today, but now that UGRC has leveraged the Open Data platform, there are more options for users to access geospatial data in their preferred way. Before the Open SGID, a user would typically have gone to the UGRC web page to find the data they were looking for and download it in shapefile or file geodatabase format. The introduction of the Open SGID has opened the door for new ways to explore Utah’s GIS data. The accompanying Python Notebook for this blog post can be found here on Google Colab. By Erik Neemann on A Brief Tutorial on Exploring the Open SGID with Open Source Python Tools
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |