Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
Pretty print example and test json
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmiclat committed Oct 15, 2019
1 parent 63ef168 commit c791388
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
32 changes: 31 additions & 1 deletion examples/data/features_demo.json
Original file line number Diff line number Diff line change
@@ -1 +1,31 @@
{"column": "WKT", "spells": [{"source_table": "ph_osm.gis_osm_pois_free_1", "feature_name": "dist_primary", "source_id": "osm_id", "dburl": "bigquery://tm-geospatial", "options": null, "source_column": "fclass", "source_filter": "embassy", "within": 10000, "module": "geomancer.spells.distance_to_nearest", "type": "DistanceToNearest"}, {"source_table": "ph_osm.gis_osm_pois_free_1", "feature_name": "num_supermarkets", "source_id": "osm_id", "dburl": "bigquery://tm-geospatial", "options": null, "source_column": "fclass", "source_filter": "supermarket", "within": 10000, "module": "geomancer.spells.number_of", "type": "NumberOf"}], "author": "Lj Miranda", "description": "Features for Geomancer Demo"}
{
"column": "WKT",
"spells": [
{
"source_table": "ph_osm.gis_osm_pois_free_1",
"feature_name": "dist_primary",
"source_id": "osm_id",
"dburl": "bigquery://tm-geospatial",
"options": null,
"source_column": "fclass",
"source_filter": "embassy",
"within": 10000,
"module": "geomancer.spells.distance_to_nearest",
"type": "DistanceToNearest"
},
{
"source_table": "ph_osm.gis_osm_pois_free_1",
"feature_name": "num_supermarkets",
"source_id": "osm_id",
"dburl": "bigquery://tm-geospatial",
"options": null,
"source_column": "fclass",
"source_filter": "supermarket",
"within": 10000,
"module": "geomancer.spells.number_of",
"type": "NumberOf"
}
],
"author": "Lj Miranda",
"description": "Features for Geomancer Demo"
}
32 changes: 31 additions & 1 deletion examples/data/some_spellbook.json
Original file line number Diff line number Diff line change
@@ -1 +1,31 @@
{"column": "WKT", "spells": [{"source_table": "gis_osm_pois_free_1", "feature_name": "dist_supermarket", "source_id": "osm_id", "dburl": "sqlite:///data/source.sqlite", "options": null, "source_column": "fclass", "source_filter": "supermarket", "within": 10000, "module": "geomancer.spells.distance_to_nearest", "type": "DistanceToNearest"}, {"source_table": "gis_osm_pois_free_1", "feature_name": "num_embassy", "source_id": "osm_id", "dburl": "sqlite:///data/source.sqlite", "options": null, "source_column": "fclass", "source_filter": "embassy", "within": 10000, "module": "geomancer.spells.number_of", "type": "NumberOf"}], "author": null, "description": null}
{
"column": "WKT",
"spells": [
{
"source_table": "gis_osm_pois_free_1",
"feature_name": "dist_supermarket",
"source_id": "osm_id",
"dburl": "sqlite:///data/source.sqlite",
"options": null,
"source_column": "fclass",
"source_filter": "supermarket",
"within": 10000,
"module": "geomancer.spells.distance_to_nearest",
"type": "DistanceToNearest"
},
{
"source_table": "gis_osm_pois_free_1",
"feature_name": "num_embassy",
"source_id": "osm_id",
"dburl": "sqlite:///data/source.sqlite",
"options": null,
"source_column": "fclass",
"source_filter": "embassy",
"within": 10000,
"module": "geomancer.spells.number_of",
"type": "NumberOf"
}
],
"author": null,
"description": null
}

0 comments on commit c791388

Please sign in to comment.