[GeoMoose-users] GM 3 and QGIS Server as WFS
Christopher Hughes
chughes at co.lincoln.or.us
Tue May 27 14:11:22 PDT 2025
As an aside, instead of editing geomoose.js, you could also make the changes at the source and rebuild the minified javascript (geomoose.js is significantly larger and will take longer for the browser to load).
Here's some documentation on how to do that on Windows - Developer Quickstart for Windows — GeoMoose documentation<https://docs.geomoose.org/3.x/quickstarts/develop-on-windows.html>. It basically involves installing NPM, cloning the geomoose repository, making your changes, and then building the javascript using NPM.
Chris
--
Chris Hughes
GIS Analyst
Lincoln County GIS Department
880 NE 7th St. l Newport, OR 97365
Tel: (541) 574 1283
________________________________
From: GeoMoose-users <geomoose-users-bounces at lists.osgeo.org> on behalf of Eli Adam via GeoMoose-users <geomoose-users at lists.osgeo.org>
Sent: Friday, May 23, 2025 3:00 PM
To: geomoose-users at lists.osgeo.org <geomoose-users at lists.osgeo.org>; Lowell Filak <filakgang at gmail.com>
Subject: Re: [GeoMoose-users] GM 3 and QGIS Server as WFS
Hi Lowell,
Thanks for the info. Sorry to not have emailed sooner, there's a little additional information here, https://github.com/geomoose/gm3/issues/901
Best regards, Eli
________________________________
From: GeoMoose-users <geomoose-users-bounces at lists.osgeo.org> on behalf of Lowell Filak via GeoMoose-users <geomoose-users at lists.osgeo.org>
Sent: Friday, May 23, 2025 2:24 PM
To: geomoose-users at lists.osgeo.org <geomoose-users at lists.osgeo.org>
Subject: [GeoMoose-users] GM 3 and QGIS Server as WFS
Hopefully this will save someone hours in debugging in the future.
OpenLayers, and subsequently GeoMoose, expects EPSG:4326 from a WFS server in Lat,Lon format.
QGIS Server responds with Lon,Lat.
To fix it, edit the index.html to load geomoose.js instead of geomoose.min.js.
Edit geomoose.js to change all instances of "flatCoordinates.push(y, x, z)" to "flatCoordinates.push(x, y, z)".
The fix is not eloquent but it's a fix.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20250527/79bc3aef/attachment.htm>
More information about the GeoMoose-users
mailing list