Skip to content

Instantly share code, notes, and snippets.

View robgaston's full-sized avatar

Rob Gaston robgaston

View GitHub Profile
@robgaston
robgaston / add-example-points-layer.sh
Created January 29, 2018 17:36
example of how to add a geojson points layer to arches
python manage.py packages -o add_mapbox_layer -n example-points-1 -j example-points.json
@robgaston
robgaston / __arches_get_json_data_for_view.sql
Created April 18, 2023 18:33
Fix for "Importing data with null geometries - Relational Views and SQL ETL Methods"
create or replace function __arches_get_json_data_for_view(
view_row anyelement,
schema_name text,
view_name text
) returns json as $$
declare
column_info record;
query text;
result jsonb;
geom geometry;