Skip to content

Instantly share code, notes, and snippets.

View tomkralidis's full-sized avatar
🛠️
geohacking

Tom Kralidis tomkralidis

🛠️
geohacking
View GitHub Profile
@tomkralidis
tomkralidis / README.md
Last active May 31, 2023 11:19
OGC API - Records validation
@tomkralidis
tomkralidis / README.md
Last active September 20, 2022 00:48
OGC API Features - Part 4: Transactions example

OGC API Features - Part 4: Transactions examples

Overview

Examples of OGC API transactions using OGC API - Features - Part 4: Create, Replace, Update and Delete in the context of OGC API - Records metadata management.

curl

@tomkralidis
tomkralidis / README.md
Last active May 19, 2022 18:09
sample pygeoapi ZonalStats pygeoapi OAProc process

Sample pygeoapi process plugin for zonal statistics using GDAL and NumPy

@tomkralidis
tomkralidis / msc-geomet-ltce-demo.ipynb
Last active January 26, 2022 20:52
MSC GeoMet LTCE Jupyter demo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomkralidis
tomkralidis / README.md
Last active March 24, 2021 12:11
pygeoapi Sample Process Example
@tomkralidis
tomkralidis / README.md
Last active October 18, 2020 18:20
OSCAR station list extraction using pyoscar

OSCAR station list extraction using pyoscar

Simple workflow using pyoscar to extract a station list from OSCAR into a CSV.

@tomkralidis
tomkralidis / README.md
Last active August 3, 2020 00:48
Metadata records TinyDB experiment

Overview

This gist demonstrates creating a document store of OGC API - Records records using TinyDB as a backend.

Steps

pip3 install lxml owslib tinydb
python3 create-records-tinydb.py msc-wis-dcpc-discovery-metadata.xml
@tomkralidis
tomkralidis / full-metadata.j2
Last active February 2, 2022 14:19
GeoCRIS metadata generation
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://www.isotc211.org/2005/gmd/gmd.xsd">
<gmd:fileIdentifier>
<gco:CharacterString>{{ record['identifier'] }}</gco:CharacterString>
</gmd:fileIdentifier>
<gmd:language>
<gco:CharacterString>{{ record['language'] }}</gco:CharacterString>
</gmd:language>
<gmd:characterSet>
<gmd:MD_CharacterSetCode codeSpace="ISOTC211/19115" codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_CharacterSetCode" codeListValue="utf8">utf8</gmd:MD_CharacterSetCode>
</gmd:characterSet>
@tomkralidis
tomkralidis / README.md
Last active November 7, 2019 02:48
STAC Landsat 8 AWS to ES tooling in Python

Landsat 8 on AWS to ES tooling

curl http://landsat-pds.s3.amazonaws.com/c1/L8/scene_list.gz | gunzip > /tmp/scene_list
# download 1000 random JSON scene metadata
python landsat8-aws-es.py fetch /tmp/scene_list

# publish the JSON scene metadata in current directory as STAC records to an ES index
python landsat8-aws-es.py load ./