Geo GUI Module: Using OpenLayers to input WKT

phayes's picture

Hi Everyone,

I've developed a module called Geo GUI (http://drupal.org/project/geo_gui). You can download from csv from /contributions/modules/geo_gui.

It uses OpenLayers so that you can draw on a map for inputting polygon, line, and point information in the geo CCK fields. So instead of using WKT to input complex geometries, we can simply draw.

I would love some feedback!

AttachmentSize
geo_gui.png309.54 KB
Login to post comments

Fantastic!

tom_o_t's picture
tom_o_t - Tue, 2009-03-24 03:19

Hi Patrick,

This sounds fantastic!

I'm trying to help Allie with some documentation and feedback on the Geo module, so I'll have a play with this at the same time.

Cheers,

Thomas


Geo module integration?

ultimike's picture
ultimike - Tue, 2009-03-24 12:13

Patrick,

Does this store the drawn data using the Geo module?

-mike


never mind

ultimike's picture
ultimike - Tue, 2009-03-24 17:23

Don't bother answering - I answered my own question by looking at the project page. Duh.

Looks fantastic - can't wait to play with it.

-mike


project page update

greggles's picture
greggles - Tue, 2009-03-24 16:04

This looks awesome! I took the liberty of updating the project page to include this image and a bit more of an explanation of why this is useful. Well done!

--
Growing Venture Solutions | Drupal Dashboard | Learn more about Drupal - buy a Drupal Book


Thanks for updating the

phayes's picture
phayes - Tue, 2009-03-24 17:58

Thanks for updating the project page. I just finished coding this yesterday, if anyone wants try to break it / find bugs, I would be really appreciative.


Gmap

toursheet's picture
toursheet - Fri, 2009-03-27 16:16

We talked about draw tools at Drupalcon DC. Wow, awesome addition to geo. Would Geo GUI be possible with Google Mapping Platform? Or Geo GUI on a iPhone?


Yeah, something similar is

bec - Fri, 2009-03-27 16:53

Yeah, something similar is possible with Google Maps--a possible starting point for code would be the "GMap Macro Builder", which lets you draw on a map...


I find OpenLayers to be

phayes's picture
phayes - Fri, 2009-03-27 17:08

I find OpenLayers to be superior to Google Maps for drawing on a map (from a developers perspective - i'm sure you could make it feel the same for a user with enough work). There is no reason however that you could not display the results of this using a google map. This would be simply plugging into the geo module and building out a google maps powered display of the geometries stored by the geo module.

As for an iPhone, I assume you mean as an application? That would be tricky. OpenLayers and GoogleMaps API run on JavaScript, and the iPhone developer agreement explicitly says you cannot write a program that parses code - pretty draconian. Even if you could do it without going against apple decrees, you would need to write a JavaScript interpreter - you might as well write a browser! Might be better just to write an iPhone theme for your drupal page!

FYI - it looks like GeoGUI will be sort lived. It's likely going to be eaten by the geo_cck and OpenLayers module. This is a good thing - it means more people will use it!