Opened 6 years ago
Last modified 23 months ago
#16880 new enhancement
Add support for WFS layer
Reported by: | lucadelu | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core imagery | Version: | |
Keywords: | wfs gml | Cc: | mnalis |
Description
It could be really useful to add support for WFS layer.
I'm not sure if it could be in the core or in opendata plugin.
Attachments (0)
Change History (13)
comment:1 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:2 by , 6 years ago
Component: | Core → Plugin |
---|
Because I have several Gigabytes of data and I would like to share them using WFS services and link these services into OSM Tasking Manager.
I changed component from core to generic plugin
comment:3 by , 6 years ago
Is it public data? We need access to some public servers if we want to add this. Also it must be of public interest for the OSM community.
comment:4 by , 6 years ago
Found a good example of WFS OSM data: osmwiki:Magosm. Could be useful to browse it using JOSM.
comment:5 by , 6 years ago
Component: | Plugin → Core |
---|---|
Owner: | changed from | to
Status: | needinfo → new |
Maybe this can be done in core after all. WFS is probably quite similar to WMS so maybe external libraries are not needed.
comment:6 by , 6 years ago
Keywords: | gml added |
---|
WFS relies on GML so it must be supported as well.
I wrote a small GML parser in opendata plugin but it requires GeoTools and JTS. I don't remember why, probably because at that time JOSM core did not provide as many projections as it does today.
follow-up: 8 comment:7 by , 6 years ago
I could use WFS support too: the French geological state service (BRGM) publishes, under an open license, data about sinkholes and caves (http://geoservices.brgm.fr/risques), but only using WMS or WFS. WMS is great for importing object locations, but it doesn't allow access to metadata, so I have to keep an eye on a browser at the same location to import useful metadata as well as locations of nodes. WFS support could speed that up.
comment:8 by , 5 years ago
Replying to Penegal:
I could use WFS support too: the French geological state service (BRGM) publishes, under an open license, data about sinkholes and caves (http://geoservices.brgm.fr/risques), but only using WMS or WFS. WMS is great for importing object locations, but it doesn't allow access to metadata, so I have to keep an eye on a browser at the same location to import useful metadata as well as locations of nodes. WFS support could speed that up.
I second this. There is now a lot of data available from the Swedish Environmental Agency where metadata is only available via WFS. See https://wiki.openstreetmap.org/wiki/WikiProject_Sweden/Open_data/Naturv%C3%A5rdsverket
comment:9 by , 5 years ago
I found this very simple and free software WFS nodeJS implementation that might be of help when trying to implement it.
comment:10 by , 4 years ago
Cc: | added |
---|
comment:11 by , 3 years ago
The french AED national database (GéoDAE) publish only in WFS : https://datacarto.atlasante.fr/wfs/87d621bd-fc7b-4b51-92b7-7515ac1c66c7?service=WFS&request=GetCapabilities
comment:12 by , 23 months ago
As a workaround, as long as JOSM does not support WFS, you can use QGIS to import vector data from a WFS server and export it for use with JOSM.
This is the basic workflow:
- Setup a WFS layer in QGIS based on the capability URL of the server
- Import data from the WFS server as a layer into a new QGIS project (Step 4: Connect + Add)
- Export the layer as ESRI shapefile
- Import the ESRI shapefile into JOSM using the OpenData plugin (*.shp files will be enabled in "Open file" dialog once it is installed)
- Save the layer as *.osm file for future use (faster than reading in the shapefile)
QGIS is open source and licensed under GPL, so maybe this could be a good reference for implementing WFS support for JOSM.
comment:13 by , 23 months ago
Component: | Core → Core imagery |
---|
Not in core as it needs third parties libraries. I think GeoTools provides WFS support. Why do you need it?