GeoJSON rounding precision inconsistent between draw and editing
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 640
- PR merge metrics
- No merged PRs in 30d
Description
* Click rectangle tool
* Draw box
* Note GeoJSON using 15 decimal places
* Drag the feature with space+drag
* Still 15 dp
* Drag corners to resize
* Rounded to 7 dp
* All operations should round to the same precision (of which I agree that 7 dp is a good choice).
* Point / LineString / Polygon rounds to 7dp when drawing and editing
* Circle rounds to 15dp on drawing and editing
Contributor guide
Research direction
Reproduce the rectangle tool flow: draw a box, move it with space+drag, and resize it by dragging corners, then compare the GeoJSON coordinate precision. Trace the drawing and editing paths that serialize Point, LineString, Polygon, and Circle geometries; done means the stated geometries consistently use 7 or 15 decimal places in both drawing and editing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100