This gist demonstrates creating a document store of OGC API - Records records using TinyDB as a backend.
pip3 install lxml owslib tinydb
python3 create-records-tinydb.py msc-wis-dcpc-discovery-metadata.xml
#! /usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
# | |
# Generate an HTML Snippet for WordPress Blogs from reStructuredText. | |
# | |
# This is a modification of the standard HTML writer that leaves out | |
# the header, the body tag, and several CSS classes that have no use | |
# in wordpress. What is left is an incomplete HTML document suitable | |
# for pasting into the WordPress online editor. | |
# |
class python27 { | |
Package { ensure => "installed" } | |
$apt-base = "/etc/apt/sources.list.d/fkrull-" | |
Exec { require => Package["python-software-properties"] } | |
exec { "python-repo" : | |
command => "/usr/bin/add-apt-repository ppa:fkrull/deadsnakes", | |
creates => "${apt-base}deadsnakes-lucid.list", |
/* | |
GeoJSON layer with mouse hover events to properties for each feature | |
Requires JQuery to handle the AJAX requests | |
Currently only supports FeatureCollections | |
Features must have ID's, so they can be deduplicated across tiles (not rendered twice). | |
*/ | |
/* | |
Control that shows HTML content for a point on hover | |
*/ |
#!/usr/bin/env node | |
var assert = require('assert'), | |
shell = require('shelljs'), | |
path = require('path'), | |
BASEDIR = path.resolve(__dirname, '../') + '/', | |
NEWSAPP = BASEDIR + 'examples/newsboxes/'; | |
#!/usr/bin/env python2 | |
""" | |
Script that allows for conversion of a netcdf file to | |
a stack of geotiff files with each raster being a time | |
slice from the input file. | |
Base implementation taken from: | |
https://www.linkedin.com/pulse/convert-netcdf4-file-geotiff-using-python-chonghua-yin | |
Usage: |
This is a short guide that will teach you the workflows that have been figured out by the voxel.js community for writing node modules + sharing them on NPM and Github. It is assumed that you have a basic understanding of JavaScript, github and the command line (if not you can check out an introduction to git and the command line or learn JS basics from JavaScript for Cats)
The voxel-tower repository on github contains all the example code from this guide.
Requirements: Terraform, GCP credentials with permission to create a project Tested with: Terraform v0.12.23, google cloud provider v3.26
You can use an environment variable to set which service account key to use during provisioning export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key
The service account you use must belong to a GCP project that has the necessary APIs enabled (such as billing and resource manager)--if it does not, you may have to enable these APIs manually along the way in those projects
In this directory, run terraform init
then terraform apply
-- you will need to provide a billing_id and organization_id for your GCP project
Once successful, be sure to add the following to your ~/.prefect/config.toml
import logging | |
from django.contrib.gis.db.backends.postgis.base import \ | |
DatabaseWrapper as PostgisDBWrapper | |
from django.db import ProgrammingError | |
from .schema import TimescaleSchemaEditor | |
logger = logging.getLogger(__name__) |