Skip to content

feat: make GeoJSON type opaque and provide constructor functions#7

Open
Guria wants to merge 1 commit intomainfrom
opaque
Open

feat: make GeoJSON type opaque and provide constructor functions#7
Guria wants to merge 1 commit intomainfrom
opaque

Conversation

@Guria
Copy link
Copy Markdown
Owner

@Guria Guria commented Oct 5, 2024

Non opaque GeoJSON may lead to build incorrect geojson. Eg, Feature that contains non Geometry types.

BREAKING CHANGE: GeoJSON type is now opaque. Use new constructor functions (new_point, new_feature, etc.) to create GeoJSON objects instead of direct construction. This ensures type safety and prevents creation of invalid GeoJSON structures.

Non opaque GeoJSON may lead to build incorrect geojson. Eg, Feature that contains non Geometry types.

BREAKING CHANGE: GeoJSON type is now opaque. Use new constructor functions (new_point, new_feature, etc.) to create GeoJSON objects instead of direct construction. This ensures type safety and prevents creation of invalid GeoJSON structures.

Signed-off-by: Aleksei Gurianov <gurianov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant