Skip to content

Add --return-full-shapes flag to report polygon shapes and deviation statistics#6

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/change-results-reporting-method
Draft

Add --return-full-shapes flag to report polygon shapes and deviation statistics#6
Copilot wants to merge 3 commits intomainfrom
copilot/change-results-reporting-method

Conversation

Copy link

Copilot AI commented Mar 2, 2026

generate_interesting_points.py was outputting centroid Points with only a mean deviation value per feature. This PR adds a --return-full-shapes flag to optionally return the actual detected shapes with richer deviation statistics.

Changes

  • New flag --return-full-shapes: When set, outputs full Polygon geometries with deviation statistics (mean, max, std). Without the flag, the default behavior is preserved (centroid Point features with a single deviation mean value).
  • Full-shapes schema (with --return-full-shapes):
    • deviation_mean — mean deviation across feature pixels
    • deviation_max — peak deviation within the feature
    • deviation_std — spread of deviations within the feature

Output schema diff

# Default (no flag) — unchanged from original
schema = {
    "geometry": "Point",
    "properties": {"id": "int", "area": "float", "deviation": "float"},
}

# With --return-full-shapes
schema = {
    "geometry": "Polygon",
    "properties": {
        "id": "int",
        "area": "float",
        "deviation_mean": "float",
        "deviation_max": "float",
        "deviation_std": "float",
    },
}
Original prompt

This section details on the original issue you should resolve

<issue_title>Change the way that we report results</issue_title>
<issue_description>Return interesting shapes and statistics of deviations instead of centroids and mean in the interesting points script</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: calebrob6 <1088078+calebrob6@users.noreply.github.com>
Copilot AI changed the title [WIP] Update results reporting to include shapes and statistics Report polygon shapes and deviation statistics instead of centroids and mean Mar 2, 2026
@calebrob6
Copy link
Member

@copilot make this mode a flag --return-full-shapes

Co-authored-by: calebrob6 <1088078+calebrob6@users.noreply.github.com>
Copy link
Author

Copilot AI commented Mar 2, 2026

@copilot make this mode a flag --return-full-shapes

Done in 94e3d98. Added --return-full-shapes as an action="store_true" flag. Without the flag, the default behavior is preserved (centroid Points + single deviation mean). With the flag, it outputs full Polygon geometries with deviation_mean, deviation_max, and deviation_std properties.

Copilot AI changed the title Report polygon shapes and deviation statistics instead of centroids and mean Add --return-full-shapes flag to report polygon shapes and deviation statistics Mar 2, 2026
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.

Change the way that we report results

2 participants