Skip to main content

geomd

Spec

GeoMarkdown is a Markdown dialect for geodata. This package provides parsers and renderers that convert between GeoMarkdown and GeoJSON

See the Specification for the full notation.

Quickstart

Walk through parsing and rendering in notebooks/quickstart.ipynb.

Or, in three lines:

import geomd as gmd

markdown_str = """
# Barcelona Tour

## Park Güell

<!--
field_mapping:
    - On map: geometry
-->

### Overview

A colorful park designed by Antoni Gaudí

### Address

Carrer d'Olot, Barcelona, Spain

### On map

```geometry
{"type": "Point", "coordinates": [2.1527, 41.4145]}
```
"""

# Convert from GeoMarkdown to GeoJSON
geojson_str = gmd.convert(
    text=markdown_str,
    src="geomd",
    dst="geojson"
)
print(geojson_str)

Try it online

The quickest way to see geomd in action is the hosted demo:

https://geomd.onrender.com/?url=https://raw.githubusercontent.com/spapulin/geomd/refs/heads/main/assets/barcelona_tour.geojson&src=geojson&dst=html&auto_contents=true

The service takes a GeoJSON file, reads it, and renders it back as HTML. The example above uses barcelona_tour.geojson

The service accepts three query parameters:

Parameter Description Example
url Public URL of the source file https://raw.githubusercontent.com/.../barcelona_tour.geojson
src Source format geojson
dst Target format html
auto_contents Auto-generate table of contents (true/false, default: false) true
contents_title Title of the table of contents (str, default: "Contents") Table of Contents

The demo server also exposes an interactive Swagger UI where you can explore and test the available endpoints directly from your browser:

https://geomd.onrender.com/docs

Install

As a library

With uv (recommended):

uv add geomd

With pip:

pip install geomd

Development version

The latest unreleased code from main. May contain bugs, may break without notice. Use only if you need a fix that hasn't shipped to PyPI yet.

uv add "geomd @ git+https://github.com/spapulin/geomd.git"
pip install "geomd @ git+https://github.com/spapulin/geomd.git"

For reproducible installs, pin to a tag or commit:

uv add "geomd @ git+https://github.com/spapulin/geomd.git@v0.1.0"

Specification

GeoMarkdown is defined by Specification. The spec is versioned independently of the package:

  • Package: geomd is the Python implementation.
  • Spec: 0.1.0 is the notation.

License

MIT

Metadata

Release files for geomd 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geomd 0.2.0
File Size Uploaded Provenance Actions
geomd-0.2.0.tar.gz 13.6 kB Without provenance Details for geomd-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geomd 0.2.0
File Interpreter ABI Platform Actions
geomd-0.2.0-py3-none-any.whl Python 3 none any Details for geomd-0.2.0-py3-none-any.whl

Total release size: 34.3 kB

Release files / geomd-0.2.0.tar.gz

Download URL geomd-0.2.0.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1daa29bd7ca51a041d7d19a928b7d73203e54676490b39bb25d1dcab848efbee
BLAKE2b-256 checksum
How to use checksums
b6438a57d882aa22687099337c948e0755ba6a0281221f7909d9a596b8bb87ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / geomd-0.2.0-py3-none-any.whl

Download URL geomd-0.2.0-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00d5f4c64d813cd2131c5c98a5687e116cfe4e6df6a2cd3b6203a495dd5ce483
BLAKE2b-256 checksum
How to use checksums
08b9a688f2879d2651e6f47fa599438c84b79f8ce865eca76ea231302ff1bf7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for geomd 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page