I have the following table for time zone data:<br><br>CREATE TABLE tz_world<br>(<br>  gid serial NOT NULL,<br>  tzid character varying(30),<br>  the_geom geometry,<br>  CONSTRAINT tz_world_pkey PRIMARY KEY (gid ),<br>  CONSTRAINT enforce_dims_the_geom CHECK (st_ndims(the_geom) = 2),<br>
  CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'MULTIPOLYGON'::text OR the_geom IS NULL),<br>  CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = (-1))<br>)<br><br>and a location table:<br>
<br>CREATE TABLE locations<br>(<br>  id bigserial NOT NULL,<br>  latitude numeric,<br>  longitude numeric,<br>)<br><br>Given a location id, I want to know what time zone it's in.  I'm brand new to GIS and have not been able to figure out this query. I have PostgreSQL 9.1 and PostGIS 1.5.3 installed and set up, and the timezone data imported using the shape file import wizard.<br>
<br>Can someone please give me an example of how to query lat/lon in the_geom?<br><br>Thanks!<br>Scott<br>