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.

Im completely new to GIS. I must finish already started project that uses Oracle as DB for geoobjects, Geoserver, OpenLayers. Task is to draw something on a map (OpenLayers must handle that drawing i assume...) and then save it to Oracle database(as a layer i think). Ive looked through some manuals on geoserver, but maybe you can help me to quickly start in this "simple" input/output scenario?
Thank you.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

The OpenGeo Suite sounds like your best all in one solution

http://opengeo.org/products/suite/integration/

Though understanding the steps will help your build the web mapping application you want, here are some useful links that show you what can be achieved.

Editing

"OpenLayers provides vector editing capabilities previously only available on desktop clients completely in the browser, including snapping, splitting, and basic shared boundary editing backed by GeoServer and the WFS-T standard. With the OpenGeo Suite, make edits from the browser directly to an enterprise database all directly on top of Google Maps tiles."

There is a New Openlayer Editing toolbar available here. https://github.com/geops/ole#readme

source code: https://github.com/geops/ole

enter image description here

Geoserver works best with the a transactional Web Feature Service (WFS-T) allows creation, deletion, and updating of features. It can be setup with the additional Oracle Drivers to take data to and from oracle. http://docs.geoserver.org/latest/en/user/data/oracle.html

Openlayers WFS-T example - http://openlayers.org/dev/examples/wfs-protocol-transactions.html

share|improve this answer
    
Dont really understand their documentation clearly :(. Ive added all that "save" code, but dont know what to fill as featureNS.. Response from server is "Could not contact back-end site". –  0x49D1 Mar 5 '12 at 9:22
    
var wfs = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection("EPSG:900913"), protocol: new OpenLayers.Protocol.WFS({ srsName: "EPSG:900913", url: "localhost:8080/geoserver/wfs";, featureType: "RAILWAY", featurePrefix: "MIA", geometryName: "SDO_GEOMETRY" }) }); –  0x49D1 Mar 5 '12 at 9:24
    
If i understood all that right-with king of such code i can write some drawn data to database table RAILWAY, but cant properly make a request. –  0x49D1 Mar 5 '12 at 9:27
    
The main point of my question was: is it possible(and how to) open some layer, add more details to it with drawing possibilities and save it to the database as same layer. –  0x49D1 Mar 5 '12 at 10:04
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.