Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I add GML files to a GeoServer 2.2.2 instance?

How can edit them "on the fly" and save the results back to the server using OpenLayers?

I would appreciate examples if possible.

I'm adding a vector layer. in which we want to use gml. we want to add feature like point ,line etc. to gml. when we do editing on line that features will be saved on this layer. i want to insert that feature using openlayers on line like in wfs layer we do using transanction. similar type i want to do using gml ....

share|improve this question
Welcome to gis.SE. To help provide you with a proper answer, can you please try to explain your situation in more detail? What are you trying to do? What sort of GML do you have? What type of detail do you need to edit? What have you already tried? What worked and what didn't work? You can just click "edit" above to add this information. – BradHards Mar 5 '13 at 8:04
Why would you want to store your data in gml? Seems a pretty bad choice. – johanvdw Jan 10 '14 at 7:51
You should try to avoid using GML format: It is still under development and far from being interoperable. – julien Apr 2 '14 at 14:16

There is a gml extension to geoserver which allows you to load gml files. This manual explains how to do it, however it states that it is currently not supported in geoserver. Well, I think you can try it anyway.

As for editing the data: as soon as you are able to publish your data as WFS, you should be able to edit it as WFS-T with OpenLayers, just as e.g. shape files.

share|improve this answer
is there another way to do this – user15058 Mar 8 '13 at 7:15
unfortunately you cannot load gml files into geoserver without the extension. why is it a problem? – ylka Mar 8 '13 at 8:27
where do we find gml extension for geoserver 2.2.2 version. the older version of GML it is not supported.... – user15058 Mar 8 '13 at 8:51
sorry I don't know either, but found a topic where this issue is discussed:… – ylka Mar 8 '13 at 9:09
could we can edit gml and then save it to hard disk... using openlayers.... – user15058 Mar 11 '13 at 9:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.