Jump to content

edit openlayers feature attribute and save in geoserver


payame_noor

Recommended Posts

I have a layer in geoserver and I want to get this layer with WMS in OpenLayers.

population = new OpenLayers.Layer.WMS("population",
"http://localhost:8080/geoserver/world/wms",
{'layers': 'population', transparent: true, format: 'image/png'},
{isBaseLayer: false}
);

I get the property of feature with OpenLayers.Control.WMSGetFeatureInfo.

featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({
queryVisible: true,
layers: [population],
output: 'features',
infoFormat : 'application/vnd.ogc.gml',
format: new OpenLayers.Format.GML,
eventListeners: {
getfeatureinfo: showInfo
}
});

I want to edit the property of some features.

How can i do?

Edited by payame_noor
Link to comment
Share on other sites

  • 4 months later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

Disable-Adblock.png

 

If you enjoy our contents, support us by Disable ads Blocker or add GIS-area to your ads blocker whitelist