ProfessionalWiki / ProfessionalWiki/Maps
Size issues with GeoJSON
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 78
- Forks
- 65
- Avg merge
- 9h 17m
- Merged PRs (30d)
- 6
Description
Setup
- Maps version: 7.4
- MW version: 1.31
- PHP version: 7.1
- SMW version (if applicable): 3.0.1
Issue
I have tried the GeoSON capabilities of maps and there seem to be size issues:
As GeoJSON files can become very large, putting them as Wikipage in the Geojson: namespace simply will not work. Is there a way to overcome this?
Secondly the parameter geojson= that points to an small file, works, pointint it to a larger file results either in the page not being saved or the page shows an "Unstrip size limit exceeded (5,000,000)" message.
These ones I have tried
- works: https://data.wien.gv.at/daten/geo?service=WFS&request=GetFeature&version=1.1.0&typeName=ogdwien:UBAHNOGD,ogdwien:UBAHNHALTOGD&srsName=EPSG:4326&outputFormat=json
- unstrip size warning: https://data.wien.gv.at/daten/geo?service=WFS&request=GetFeature&version=1.1.0&typeName=ogdwien:GRDSTKSTADTBEFOGD&srsName=EPSG:4326&outputFormat=json
- shows a blank page: https://data.wien.gv.at/daten/geo?service=WFS&request=GetFeature&version=1.1.0&typeName=ogdwien:FRANZKATOGD&srsName=EPSG:4326&outputFormat=json
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported behavior with the three GeoJSON URLs and the Maps 7.4, MediaWiki 1.31, and PHP 7.1 setup described in the issue. Trace how the geojson= parameter and Geojson namespace content are handled, then verify that large inputs no longer trigger the unstrip size warning, fail to save, or produce a blank page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100