Hi dear, I follow this tutorial : http://wordpress-dbauszus.rhcloud.com/wfs-t-with-openlayers-3-5/ to update, delete and insert data from openlayers to geoserver. Update and delete works fine but I ve some problem for inserting a new feature within the layer.
So I configure GeoServer to enable all users write for the workspace. I verify, I can add feature with QGIS but not in openlayers. I try just working with geoserver and not postgresql but it 's the same problem. I get the error in post response : <ows:ExceptionReport xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengis.net/ows" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/ows http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd"> <ows:Exception exceptionCode="NoApplicableCode"> <ows:ExceptionText>No such feature type http://localhost:8080/geoserver/topp:states</ows:ExceptionText> </ows:Exception> </ows:ExceptionReport> the script is : <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>slide demo</title> <link href="//netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" rel="stylesheet"> <link rel="stylesheet" href="http://openlayers.org/en/v4.0.1/css/ol.css" type="text/css"> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> </head> <body> <div id="map" class="map"></div> <button id="btnPoint" class="mdl-button mdl-js-button mdl-button--fab mdl-button--colored"> /add_location/ </button> <button id="btnLine" class="mdl-button mdl-js-button mdl-button--fab mdl-button--colored"> /timeline/ </button> <button id="btnArea" class="mdl-button mdl-js-button mdl-button--fab mdl-button--colored"> /signal_cellular_null/ </button> <button id="btnEdit" class="mdl-button mdl-js-button mdl-button--fab mdl-button--colored"> /build/ </button> <button id="btnDelete" class="mdl-button mdl-js-button mdl-button--fab mdl-button--colored"> /delete/ </button> </body> </html> I try to add schema in wfs configuration without result. Thank's for your help. Florian -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-T-error-tp5327097.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
