-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Points as map features are not visible on project details page #2164
Comments
#2154 we have a bit of work to do making FMTM functional for mapping points. So far we only focused on polygons. How urgent is this project? 🙏 |
I am not sure on priority. Ivan is providing demo this week where the clients are mostly mapping point features. I will forward you the email. |
Is there any chance you can upload the data here, for easier debugging when we address this? I think its actually a bug related to the data extract, as I managed to create a point data project previously and at least display the data on the map |
Task boundary: |
It's a frontend issue, as the point are actually there, but don't display on the map (no style probably) The downloaded data |
@spwoodcock , now all the projects are shown as point features. I just created a project with building map feature downloaded from osm, which i expected to be on polygon format. However, I can see the buildings are in point format. |
All projects or just newly created projects are displaying as points? I will look into it 👍 Should we make a new PATCH release soon after fixing this? |
This is for newly created projects. Old projects are showing the polygon boundary. |
No this isn't on prod, don't worry =) A hotfix would be to fix prod, while PATCH releases are just in the regular release cycle 😉 |
Yes there are many bug fixes and features that needs to be on prod as well as on Tokha instance too. So we need to decide on patch release soon. |
I just made a project uploading a buildings extract (only polygons) and they display as polygons: I then created a project extracting data from OSM: We can see a mix of polygon and point geoms, which is guess I expected - OSM can have both. Perhaps the project you were testing with is mostly points on the map, rather than polygons? |
I think previously we were creating data extracts but not actually displaying any of the point data! So we probably have a few projects with some point data in there, but they don't show and were not mapped. It makes sense to be able to map both right? We create entities in ODK for both geometry types in parallel. If we allow for mapping mixed geometry types though, this causes a dilemma for the draw geometry functionality as we have it. Perhaps we need two things:
|
I think this issue is fixed though & we can create new issues for the points above 👍 |
Sorry for the confusion, I didn't make it clear earlier maybe. But have you looked at those projects on mapper's page. Though they are visualised as polygon on project details page, they as seen as points on mapper's page. |
Clarifying requirement again:
Same will be the behavior for when user fetch map features from osm. SS of project created using polygon as map features: In mapper's page of Same project cc; @spwoodcock , @NSUWAL123 |
Hi @spwoodcock , Do you have any update on this issue? |
I made a temp fix to default to Polygons for now. Will be continued in #2220 |
Though temporary fix is made, its still shown as points on mapper frontend for the building features fetched from osm. |
Sorry I should explain myself better to avoid misunderstandings (I wrote this late last night!) This is a fix for new projects made. Any projects that have the wrong config and we want to display as polygons, we simply update the new_geom_type db column for them. The question is, how urgent is the new release for Tokha? Nothing in this issue is a blocker |
I just created a new project and the features were points for the building features fetched from osm. I haven't tried by uploding custom map features though. For tokha, the behavior should be features should be polygon and this is non negotiable and my concern is when we pull whole staging server to tokha, it gonna create mess. |
Does Tokha have all the projects made already, or still needs some new ones? If they are already made, we just update the db value as mentioned |
There will be around 3-4 projects to be made |
… (during proj create) (#2225) * Revert "fix(backend): set new_geom_type default to Polygon as temp fix for #2164" This reverts commit 400ed11. * fix(backend): ignore missing token warning for auth checks * build: migration to rename xform_category --> osm_category * refactor(createProject): set primary_geom_type and new_geom_type fields * build: update to latest osm-fieldwork for change to form_category * feat(projectCreate): option to specify new_geom_type and primary_geom_type separately * fix: correctly handle osm data extracts using enum from form type * Feat/rework proj create cont (#2230) * [pre-commit.ci] pre-commit autoupdate (#2224) updates: - [github.com/commitizen-tools/commitizen: v4.2.1 → v4.2.2](commitizen-tools/commitizen@v4.2.1...v4.2.2) - [github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7](astral-sh/ruff-pre-commit@v0.9.6...v0.9.7) - [github.com/astral-sh/uv-pre-commit: 0.6.0 → 0.6.2](astral-sh/uv-pre-commit@0.6.0...0.6.2) - [github.com/pycontribs/mirrors-prettier: v3.5.1 → v3.5.2](pycontribs/mirrors-prettier@v3.5.1...v3.5.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * chore(deps): update dependency @types/geojson to v7946.0.16 (#2227) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(dataExtract): if no dataExtract uploaded or fetched, disable next btn * fix(radiobutton): use radio option label as id for radiobutton * fix(description): update uploadSurvey desc section hover * fix(checkbox): update styles * refactor(style): refactor style to maintain consistent gaps in UI * fix(selectForm): disappear validation message after form upload --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --------- Co-authored-by: Nishit Suwal <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Describe the bug
when I create a project for MSF Austria demo where most of the features to be surveyed are point features (POIs and amenities). The project can be created but the features are not visible on project details page.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The features should be visible on project details page
Screenshots
Additional context
Check the behavior on https://dev.fmtm.hotosm.org/project/101
The text was updated successfully, but these errors were encountered: