Hot answers tagged wfs
If you need to visualize WMS and WMTS are the protocols to use. WFS is meant to transfer raw data with full geometries and attributes, which a client software (not a human) can then either visualize on its own (try for example QGis as a WFS client), analyze and eventually edit, saving back the changes via the WFS Transaction call. OGC in general provides ...
You can also switch off WFS-T for your service by going to the WMS menu page (Services->WMS) and changing the service level from Complete to Basic.
There are multiple ways of achieving this: Use Geoserver's Service Security Connect to the PostGIS table with a user who only has Read-Only access on the Table. Ideally you should do both.
You can use the security subsystem to disallow writes on a specific set of layers: http://geoserver.geo-solutions.it/edu/en/security/layer_level.html http://docs.geoserver.org/stable/en/user/security/layer.html
It seems to me that you could just add the features to the local layer as well as sending them to PostGIS. I'd comment further but the key part of the code is missing from your question. As an aside why not use the WFS-T functionality built in to GeoServer instead of reinventing it using PHP?
Turns out the answer was that Geoserver didn't allow for jsonp to be shown in web applications. After I asked the web dev responsible for dealing with servers he was able to write a few lines of code to the server and now my layers suddenly all work in the web apps!
Try using preventDefault() or try changing #formulaire from a 'submit' type to a 'button' type and just have the script execute on click. At that point the data will submit but the updated image won't show since it not calling a new request to geoserver (which was happening when the page was refreshed). You need to find a function in leaflet to force your ...
Only top voted, non community-wiki answers of a minimum length are eligible