I may be missing something here, when we talked about polygon we mean
the borders on a map;
a map can be territory of a nation or a simple building with rooms or
a piece of land.
When we use google map, what we actually using is a map that was drawn
using polygon and in turn
each polygon is identifed by a zipcode and address.when you say for
example map(zipcode='20090')
we mean a polygon identified by zipode '20090',assuming the function
map is there that takes zipcode and return other attributes.
It is simple to port google map into web2py as far as territory of a
nation is concerned. But, this is only for a country
that already has the polygon drawn on the geo political map identified
by address and zipcode or by one of them. For countries with no
digital map in place, we should think having a tool that takes ploygon
as an attribute and
togther with other attributes, like address or zipcode etc.--- the
reason I am saying is,the polygon can be identified by GPS for a map
outside of a building, and by a tool that traces manually a map and
identify the x,y coordinate of lines (sides)of a ploygon where GPS
does not work.
Call it longitude and latitude in a computer it is always x,y with
distance scaling.
One can draw the polgon outside and port points of a ploygon to
web2py, e.g, points for polyon on a map are 2,3;4,5;6,7; and closed
ploygon. -- web2py will be able to draw the polygon on a console.
db.define_table('myCountryMapy',
db.field('polygon', 'points'),
db.field('zipCode'),
db.field('address'),
db.field('city'),
db.field('state'),
db.field('country'))
All fields are required.
for building :
db.define_table('myBuilding',
db.field('polygon', 'points'),
db.field('BuildingName'),
db.field('RoomName'),
db.field('Floor'))
All fields are required.
The former is for geo political map, and later is for building for
home automation and location identification of equipment with sensors
attached to them.
If possible web2py can incorporate reading of points from GPS, and
from tools used to identify points of a ploygon by tracing a map.
Regards:
dbb
> > > - Show quoted text -- Hide quoted text -