Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render extracted shorelines as points instead of interpolated linestrings #187

Closed
1 task
2320sharon opened this issue Aug 24, 2023 · 1 comment
Closed
1 task
Assignees
Labels
enhancement New feature or request V1 Version 1 of Coastseg

Comments

@2320sharon
Copy link
Collaborator

Render extracted shorelines as points instead of interpolated linestrings

Description:
Instead of utilizing Coastsat's function to interpolate the points for the extracted shorelines, the proposal is to save them directly as points within a GeoJSON file. Subsequently, these points should be rendered on the map.

Proposed Solution:

  1. Modify the extraction function to save shoreline points directly without interpolation.
  2. Save these points to a GeoJSON file.
  3. Update the map rendering function to display these points.

Alternative Solutions:

  • Consider providing an option for users to toggle between viewing interpolated linestrings and raw points, catering to different user preferences.

Benefits:

  1. Direct representation of extracted data without interpolation, ensuring accuracy.
  2. Potentially faster processing and rendering times as interpolation is skipped.
  3. Provides a clearer view of data density and distribution.

Drawbacks:

  1. Without interpolation, the visual representation might appear fragmented or less continuous.
  2. Some users might prefer the visual continuity provided by linestrings.

Additional Context:

  • This change might affect other visualization tools or functions that rely on the current interpolated linestrings format.
@2320sharon 2320sharon added the enhancement New feature or request label Aug 24, 2023
@2320sharon 2320sharon self-assigned this Aug 24, 2023
@2320sharon 2320sharon added the V1 Version 1 of Coastseg label Aug 24, 2023
@2320sharon
Copy link
Collaborator Author

pip install coastseg==0.0.75.dev1
This feature has been implemented in version 0.0.75.dev1. The shorelines are rendered on the map as individual points. Any shorelines that were created before will be converted the MultiPoint so that they can be rendered as points on the map. A new behavior coastseg has is it now saved two extracted shoreline files

  1. extracted_shoreline_points.geojson
  • Contains the shorelines as MultiPoints
  1. extracted_shoreline_lines.geojson
  • Contains the shorelines as LineStrings
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request V1 Version 1 of Coastseg
Projects
None yet
Development

No branches or pull requests

1 participant