[openstreetmap/openstreetmap-website] CRUD interface for moderation zones (PR #7148)
Marwin Hochfelsner
notifications at github.com
Tue Jul 7 16:49:54 UTC 2026
@hlfan commented on this pull request.
> + startTerraDrawForEdit(draw, feature);
+ map.fitBounds(featureToBox(feature), { radius: 100 });
+ } else {
+ startTerraDrawForNew(draw);
+ }
+ }
+
+ function readFormField(fieldId) {
+ const target = document.getElementById(fieldId);
+ if (!target) {
+ throw new Error(`Could not find field #${fieldId}`);
+ }
+
+ const match = POSTGIS_LINE_POINTS_REGEXP.exec(target.value.trim());
+ if (!match) {
+ throw new Error(`Unexpected value in field #${fieldId}. Expected a PostGIS geometry, but found: ${target.value}`);
```suggestion
throw new Error(`Unexpected value in field #${fieldId}. Expected a WKT geometry, but found: ${target.value}`);
```
I don't think PostGIS works with this type internally; it only uses the well-known text form for data transfer.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7148#pullrequestreview-4647207167
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7148/review/4647207167 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260707/5c11be30/attachment.htm>
More information about the rails-dev
mailing list