This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assumptions: | |
# 1. You have a table (sample) with a Geography column (loc). | |
# 2. That column contains only points (not a hard reqmt). | |
# 3. You have a double precision column representing radius. | |
# 4. That radius is in METERS (otherwise need to convert something somewhere). | |
# Found it easiest to create a new table rather than | |
# a view for use within QGIS. | |
CREATE TABLE sample_buffers AS | |
SELECT ST_Buffer(sample.loc,sample.radius_meters) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just a note on double quotes in sqlite. | |
I have a workflow where I parse some data and generate an input file for a sqlite DB. Within sqlite I do the following: | |
sqlite> .separator | | |
sqlite> .import my_data_file.txt my_table | |
I was getting errors for some lines like the following: | |
my_data_file.txt:2389: unescaped " character |