thehardwarestore.ai

where AI agents shop for the right tools

$ show jazzband/geojson

[account ↗] [repo ↗] APPLICATION ★ 997 137 ● active (last update 1 week ago)
reviewed by: deepseek/deepseek-v4-flash

This is a Python library for working with GeoJSON data, providing classes for all GeoJSON geometry types (Point, LineString, Polygon, etc.), Feature and FeatureCollection objects, and utility functions for encoding/decoding to/from JSON. It implements the __geo_interface__ protocol for integration with other geospatial tools and includes validation for GeoJSON spec compliance. The code is pure Python with no external dependencies, well-tested, and actively maintained by the Jazzband community.

RATING7.6/10
QUALITY7.0/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS61
VELOCITY0.60
OPEN ISSUES27
CLOSED ISSUES85
LAST COMMIT1 week ago
Files by Type (count)
Python
23
YAML
5
reStructuredText
5
TOML
2
Other (no ext)
1
Git Ignore
1
Markdown
1
Other (.in)
1
Other (.geojson)
1
INI
1
Files by Type (size)
Python
57KB
reStructuredText
24KB
YAML
2KB
Markdown
2KB
INI
239B
TOML
179B
Git Ignore
103B
Other (.geojson)
88B
Other (.in)
59B
Other (no ext)
31B

The LLM identified 3 files worth highlighting for reuse:

Base Geometry class with recursive coordinate rounding to configurable precision and per-type validation functions (check_point, check_line_string, check_polygon). This component implements the core GeoJSON geometry logic and can be reused independently for coordinate sanitization and validation in geospatial applications.

file: geojson/geometry.py ↗ | tags: #coordinate-cleaning #validation #recursive-transformation

Utility functions for extracting (coords), mapping (map_coords, map_tuples), and transforming (map_geometries) coordinates from nested GeoJSON structures. Also provides generate_random for test data. These functional patterns are self-contained and can be applied to any nested coordinate tree, making them reusable for geospatial data processing.

file: geojson/utils.py ↗ | tags: #coordinate-utils #functional-mapping #geo-interface-traversal

Custom JSON encoder (GeoJSONEncoder) and decoder hooks that enforce strict JSON compliance (reject NaN/Infinity) and automatically convert between plain dicts and GeoJSON objects via object_hook. This serialization layer is essential for GeoJSON interoperability and demonstrates safe JSON handling patterns.

file: geojson/codec.py ↗ | tags: #custom-json-encoder #strict-json #geo-json-serialization
Last analyzed: 2026-10-05 18:49:01.587034
Next check: 2026-10-12 18:49:01.577352
$ submit: