Home > openlayers > GeoServer WFS OpenLayers EditingPanel Problem

GeoServer WFS OpenLayers EditingPanel Problem

June 13Hits:0
Advertisement

I'm trying to use OpenLayers to edit features of vector data served from a local geoserver. So far, I'm able to pull WMS and WFS layers using OpenLayers from the same geoserver. But now, I'd like enable editing of features of the vector layers. The relevant code section is as shown below:

var ke_admin_vector = new OpenLayers.Layer.Vector("Admin Vector", {            strategies: [new OpenLayers.Strategy.BBOX(), new OpenLayers.Strategy.Save()],            protocol: new OpenLayers.Protocol.WFS({                version: "1.1.0",                url: "http://HOST_IP:port/geoserver/wfs",                featureType: "ke_admin",                featureNS: "pop_explorer",                srsName: "EPSG:4326"            })        });         var editpanel = new EditingPanel(ke_admin_vector)        map.addControl(editpanel); 

ke_admin is the name of the layer. pop_explorer is the workspace url. EPSG:4326 is the projection of the layer within geoserver.

When I try accessing this from a browser, firebug complains that EditingPanel is not defined. Any suggestions on what I may be doing wrong. Thanks in advance.

ANSWERED.

Answers

I was following the tutorial at workshops.opengeo.org/openlayers-intro/vector/persist.html. As it turns out, the EditingPanel.js, DeleteFeature.js and editing-panel.css referenced in the tutorial are available at http://svn.opengeo.org/workshops/projects/openlayers/foss4g_2009/src/extras/. The workshop assumed the learner had downloaded everything.

Related Articles

  • GeoServer WFS OpenLayers EditingPanel ProblemJune 13

    I'm trying to use OpenLayers to edit features of vector data served from a local geoserver. So far, I'm able to pull WMS and WFS layers using OpenLayers from the same geoserver. But now, I'd like enable editing of features of the vector layers. The r

  • Problem saving added point to GeoServer WFS-T via OpenLayers?

    Problem saving added point to GeoServer WFS-T via OpenLayers?August 20

    I want to add a point and then with WFS-T, save this to db. I work with Openlayers and GeoServer. saveStrategy = new OpenLayers.Strategy.Save(); wfs = new OpenLayers.Layer.Vector( "WFS Vectore", { strategies: [new OpenLayers.Strategy.BBOX(), sav

  • How to add a simple WFS layer from GeoServer to OpenLayers map?January 19

    I'm trying to add one of the included datasets with GeoServer to an OpenLayers map. I've followed the OpenGeo tutorials, seen similar thread on here, but I can't seem to crack it. Can somebody take a glance at my code and GeoServer setup and tell me

  • How to add WFS layer from geoserver to openlayersFebruary 5

    Ok, I know that this question has been asked here many times and I apologize for asking it again but I've looked all answers and I still can't fix my code to work. I would really appreciate if someone could tell me where I'm going wrong. I'm trying t

  • Problem Access-Control-Allow-Origin.GeoServer ISS OpenLayers February 11

    This question already has an answer here: How to configure Proxy.cgi with IIS 2 answers I use OpenLyaers in order to show france Departements. My website is generated in ASP .NET MVC 4 (i use Visual studio 2012) ans i use GeoServer to store WFS files

  • Oracle / GeoServer / WFS-T / Openlayers many polygons as one featureFebruary 26

    Newbie question regarding Oracle / GeoServer / WFS-T / Openlayers. I am creating a table that will hold geometry features a user creates/updates. My question is, I would like to have just one record in the table per customer (customerId). Can I creat

  • How to add GeoServer wfs layer on OpenLayers?

    How to add GeoServer wfs layer on OpenLayers?March 4

    I can't seem to add a WFS layer like this. It works when i copy all this code locally but as soon as i change the values to point to my own layer within my own GeoServer this is the response viewed in firebug: Could not locate {http://www.mydomain.co

  • Geoserver WFS Fails to Load in OpenLayers

    Geoserver WFS Fails to Load in OpenLayersMarch 31

    I'm working with Postgis->Geoserver->openlayers on localhost. I followed a Geoserver tutorial to import some nyc sample data into my postgres/postgis database and link it to Geoserver. The layer seems to display correctly in Geoserver using the open

  • Dispaly WFS (Geojson) from geoserver with openlayers on DjangoJanuary 6

    I want to display point data from postgis to my django application. I created wfs service from geoserver and want to dispaly using openlayers. I went through many posts but none of them worked My code is myproject/myapp/templates/map.html <html> <

  • Drupal-Geoserver WFS error September 24

    I am having trouble getting a WFS layer working using Geoserver, OpenLayers and GeoExt. I get the following error: XMLHttpRequest cannot load http://10.0.0.155/geoserver/wfs. Origin http://10.0.0.155:8080 is not allowed by Access-Control-Allow-Origin

  • geoserver wfs insert errorApril 27

    I keep getting an insert error from geoserver when trying to save a point, poly etc etc to my postgis table. any ideas, my code is below var Projection = new OpenLayers.Projection("EPSG:4326"); var map = new OpenLayers.Map("Map", { //p

  • How do I edit info feature attributes in GeoServer with OpenLayers

    How do I edit info feature attributes in GeoServer with OpenLayersNovember 14

    Can you help me? I have a very difficult problem when doing project... I have used OpenLayers and GeoServer. When I click in the map to get feature info, I receive the info for the feature and region clicked. Example: RegionName:Hanoi,Population:500.

  • geoserver and openlayers select rectangle pixel valuesOctober 15

    I'm running a geoserver (2.5.x) with 1 raster file (GeoTIFF) as a layer. From my application I can access a single pixel value when clicked (through WMS), but what I'm really interested in is to get a range of pixels and then do some processing on th

  • display multiple vector layers from single PostGis table in GeoServer using OpenLayers - REWORDEDMarch 23

    Prompting suggestions I'm going to attempt to reword my question I have a PostGis table that contains overlapping vector polygons. I need to display a selection in Geoserver and provide functionality for the user to toggle on & off unwanted polygons.

  • Satellite image display with the help of GeoServer and OpenLayersOctober 4

    There is a satellite image it's size is 10 GB and I need to display this image using GeoServer and OpenLayers. When user select the Satellite image in the layer switcher need to display image within 10 seconds. I tried geopdf but the image quality lo

  • What's the correct link for adding GeoServer WFS to ArcMap?

    What's the correct link for adding GeoServer WFS to ArcMap?January 27

    What is the correct URL to enter in ArcCatalog WFS Parameters when adding a WFS layer from GeoServer into ArcMap? Here's a link to our Get Capabilities document: https://weaveprod.ucdp.utah.edu/geoserver/ows?service=wfs&version=1.0.0&request=GetCa

  • JSONP working with Geoserver and OpenLayersFebruary 9

    I'm in this scenario (fighting with the same origin police issue): I have a map initialized with OpenLayers and a WFS request trough the Protocol.Script object that is giving me this error: Uncaught TypeError: Object function (a,b){this.metadata={};b

  • Geoserver WFS-T insert no response. bug?December 1

    I use Geoserver + Openlayers and want to add and save some new Points via WFS-T. I created insert transaction (correct) and sent it, but no response (include errors) was returned. In console was only: 01 dec 17:34:16 INFO [geoserver.wfs] - Request: g

  • Geoserver WFS 2.0 CSV Output Multiple Features/typeNamesJanuary 27

    I'm setting up an export function so that users may download data from a Geoserver WFS 2.0 service in a variety of the supported formats. The service has multiple FeatureTypes which should be available for export in a single query (along with BBOX an

  • GeoTools WFS Query sortBy not working for GeoServer WFSFebruary 17

    I am using GeoTools to query a GeoServer WFS using the following code: Map connectionParameters = new HashMap(); connectionParameters.put("WFSDataStoreFactory:GET_CAPABILITIES_URL", String.format("%s&request=GetCapabilities", wfsUr

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.540 s.