A couple of weeks ago, I had a need to return GeoJSON from PostGIS. This is something I've done many times, but I usually do the final formatting in the application/API layer with Javascript or Python. Basically, my workflow has been to SELECT, using the built-in ST_AsGeoJSON function to convert the geometry to GeoJSON. I … Continue reading Producing GeoJSON with SQL
Tag: SQL
BigQuery and Koop
As I continued my experimentation with BigQuery, I found myself wanting to more easily use it with my regular GIS tool set. BigQuery has a lot of powerful analytic capability, but the SQL console is intimidating for the casual user and the GeoViewer tool is fairly limited. As I began digging deeper in my previous … Continue reading BigQuery and Koop
Routing with BigQuery and ArcGIS Platform APIs
This post is a continuation of last month's post about analyzing location change with BigQuery. At the end of that post, I was already thinking of ways to extend the analysis and visualization. I decided to take the opportunity to explore Esri's recently-announced ArcGIS Platform APIs. These APIs are the same that have been available … Continue reading Routing with BigQuery and ArcGIS Platform APIs
Analyzing Location Change Over Time in PostGIS
Following up on my previous post, I decided to attempt the same analysis in PostgreSQL. The analysis doesn't make use of any spatial logic itself (yet), but I consider this a PostGIS post because it is using PostGIS geometries. In the past, I have noticed that BigQuery SQL is very reminiscent of that of PostgreSQL, … Continue reading Analyzing Location Change Over Time in PostGIS
Analyzing Location Change Over Time in BigQuery
I've recently spent a lot of time doing various forms of business analytics in BigQuery. As discussed in a previous post, I've been using BigQuery as the data integration environment for several business systems. I've found integration at the data level via an ETL/ELT/IPaaS pipeline to be a lot more stable than system-level integrations that … Continue reading Analyzing Location Change Over Time in BigQuery
Attribute Transfer in PostGIS Using Spatial SQL
Data conflation is a meat-and-potatoes task in most GIS workflows. There are numerous reasons one might need to get data from one data set into another. Perhaps you want to attach a new geometry type to existing attributes or a table. Or maybe you need to pull attributes from one or more data sets into … Continue reading Attribute Transfer in PostGIS Using Spatial SQL