Skip to content

[Fixes #2492] Fixes the support for creation of dataset with generic Geometry type#2493

Open
sijandh35 wants to merge 1 commit intomasterfrom
ISSUE_2492
Open

[Fixes #2492] Fixes the support for creation of dataset with generic Geometry type#2493
sijandh35 wants to merge 1 commit intomasterfrom
ISSUE_2492

Conversation

@sijandh35
Copy link
Copy Markdown

This PR fixes #2492

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for a generic 'Geometry' attribute type during dataset creation by updating the attribute row component, the validation schema, and the parsing logic. It also includes a new unit test and the necessary translation string. A review comment suggests refactoring the geometry type check in the parsing utility to reference the validation schema's enum directly, reducing code duplication and improving maintainability.

Comment on lines 378 to 383
&& [
AttributeTypes.Point,
AttributeTypes.LineString,
AttributeTypes.Polygon
AttributeTypes.Polygon,
AttributeTypes.Geometry
].includes(geomProp.const)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The list of valid geometry types is duplicated here and in the validateSchema definition (lines 78-83). To improve maintainability and ensure consistency, consider referencing the enum defined in validateSchema instead of hardcoding the list again.

                && validateSchema.properties.geometry_type.enum.includes(geomProp.const)

@mattiagiupponi mattiagiupponi requested review from allyoucanmap and removed request for giohappy and mattiagiupponi April 14, 2026 13:13
@allyoucanmap allyoucanmap requested review from anup39 and removed request for allyoucanmap April 14, 2026 13:16
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.

Support the creation of datasets with generic Geometry type

4 participants