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

Ensure mapping workflow works well for points (in addition to polygons) #2154

Open
4 of 6 tasks
spwoodcock opened this issue Feb 5, 2025 · 2 comments
Open
4 of 6 tasks
Assignees
Labels
backend Related to backend code effort:medium Likely a day or two enhancement New feature or request frontend Related to frontend code priority:high Should be addressed as a priority

Comments

@spwoodcock
Copy link
Member

spwoodcock commented Feb 5, 2025

Is your feature request related to a problem? Please describe.

  • Initially FMTM mapping was based on centroids.
  • We switched to focus on polygons as it made more sense for census mapping and informal settlement enumeration (plus it's more intuitive for users).
  • Certain use cases actually lend themselves to using points for the data collection: the MdP project in Brazil simply has POIs with free text input as the survey questions.

Describe the solution you'd like

  • Ensure Entity creation works properly for points as well as polygons
  • Allow for OSM data download as centroids (config option on frontend, pass through centroid:true to raw-data-api request)
  • Ensure backend geojson handling all works for points
  • Ensure points are displayed on project details page
  • Ensure mapping status colours work for points on the frontend
  • Ensure final output is as intended
@spwoodcock spwoodcock added backend Related to backend code effort:medium Likely a day or two enhancement New feature or request frontend Related to frontend code priority:high Should be addressed as a priority labels Feb 5, 2025
@Sujanadh
Copy link
Collaborator

Sujanadh commented Feb 7, 2025

  • point entities are created 👍
  • splitting algorithm also needs to accept points as well
  • most of the postgis function to parse geojson works for points as well unless unanticipated error

@spwoodcock
Copy link
Member Author

I have successfully created projects for points, including point entities and point flatgeobuf file for the frontend.

All seems to be working for that part!

The key thing for this workflow now is centroid OSM extracts, checking the final output is as expected, and splitting algorithm (lower priority, as this is difficult).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code effort:medium Likely a day or two enhancement New feature or request frontend Related to frontend code priority:high Should be addressed as a priority
Projects
Development

No branches or pull requests

2 participants