Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

sir 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 ....

please provide some solution..

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
1  
Why would you want to store your data in gml? Seems a pretty bad choice. –  johanvdw Jan 10 at 7:51
    
You should try to avoid using GML format: It is still under development and far from being interoperable. –  julien Apr 2 at 14:16
add comment

1 Answer

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
1  
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
1  
sorry I don't know either, but found a topic where this issue is discussed: mail-archive.com/geoserver-users@lists.sourceforge.net/… –  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
add comment

Your Answer

 
discard

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.