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.

Is there a service that allows me to draw on an OpenLayers map, and see the resulting GeoJSON?

share|improve this question

3 Answers 3

up vote 3 down vote accepted

You could use something like jsfiddle or jsbin and manipulate the map using javascript, eg http://jsbin.com/exabev/1/edit.

This will allow you to make live changes and see them on the map in the same window.

share|improve this answer
    
Exactly what I needed, thank you. –  wulfgar.pro Dec 6 '12 at 6:12

Your question is a bit ambiguous. Are you looking for an existing service, or want to create one? Or are you trying to set something up for your users to output GeoJSON?

OpenLayers natively supports GeoJSON and can write to it as well. You should look at this example and see how they write out to different formats. It won't be difficult at all to extend and add GeoJSOn to the dropdown.

http://openlayers.org/dev/examples/vector-formats.html

share|improve this answer
    
I'm looking for an existing service. –  wulfgar.pro Dec 6 '12 at 0:01
    
then why Openlayers if you're really just after GeoJSON output? –  Vadim Dec 6 '12 at 0:47
    
Any visualisation would be fine - as long as I can draw a polygon and be given the GeoJSON representation. –  wulfgar.pro Dec 6 '12 at 1:43

You can do this in QGIS. You need to first download and install it, and then install the Openlayers plugin. Add a layer from OpenLayers and zoom to your area of interest (it can sometimes take a few seconds to load and update the layer). Then, you can create a new vector layer, click on the editor icon, and draw over the basemap. You can then save your layer as a GeoJson (right click on layer, and choose GeoJson).

share|improve this answer

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.