Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I use GeoDjango for mapping a floor plan?

I want to create a floor plan map of an interior space that has clickable regions. My first thought was to investigate GeoDjango since its the mapping app for Django. But considering the dependencies, the learning curve and overall complexity, I'm concerned that I may be trying to swat a fly with a bazooka.

Should I use GeoDjango for this, or should I just store integer lists in a database field?

EDIT: The floor plan would be fairly simple; a collection of walls and workstations with the ability to define regions for how much space the workstation occupies, thus allowing offices to be defined as well as open plan layouts.

like image 554
Soviut Avatar asked Mar 02 '09 06:03

Soviut


2 Answers

I'd say that using GeoDjango for this purpose is definitely overkill.

It could be implemented simply with an image map, or Canvas/SVG or Flash for extra pretty-points :)

like image 195
mikl Avatar answered Oct 10 '22 00:10

mikl


IMHO using GeoDjango for a floor plan isn't a bad idea. But if your data does not change much and the amount of data (rooms, areas, workstation, ...) isn't very large, then you might not need a database and a full GeoDjango stack.

A simpler solution would be using OpenLayers directly with an image of the a (maybe scanned) floor plan as background layer. OpenLayers lets you also define region and points (markers) which handle "mouse over" or click events.

An example of using OpenLayers for a floor plan is Office Plans via Open Layers.

like image 35
f3lix Avatar answered Oct 10 '22 01:10

f3lix