Changes between Version 3 and Version 4 of BluePrintGIStools
- Timestamp:
- 01/26/11 05:40:19 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintGIStools
v3 v4 2 2 3 3 * Centroid 4 {{{ 4 5 select name, asText(Centroid(the_geom)) from table where name='location'; 6 }}} 5 7 6 8 * Bounding boxes 9 {{{ 7 10 select name, asText(Envelope(the_geom) from table where name='location'; 8 11 select name, extent(the_geom) from table where name = 'location' group by name; 9 12 }}} 13 10 14 * buffer calculations 11 15 12 16 * Distance measurements 17 {{{ 13 18 select distance( 14 19 (transform(GeomFromText('Point(lon lat)'), 900913), 26915), 15 20 (transform(GeomFromText('Point(lon lat)'), 900913), 26915); 21 }}} 16 22 17 23 * intersections 24 {{{ 18 25 select name from location where 19 26 GeomFromText('Point(lon lat)',900913) 20 27 && the_geom AND 21 28 within (GeomFromText('Point(lon lat)', 900913), the_geom); 29 }}} 22 30 23 31 * Point within polygon 32 {{{ 24 33 select name from location where 25 34 GeomFromText('Point(lon lat)', 900913) 26 35 && the_geom; 36 }}} 27 37 28 38 * Spherical distance 39 {{{ 29 40 select distance_sphere( 30 41 (transform(GeomFromText('Point(lon lat)'), 900913), 31 42 (transform(GeomFromText('Point(lon lat)'), 900913); 43 }}} 32 44 33 45 * Spheroid distance 46 {{{ 34 47 select distance_spheroid( 35 48 (GeomFromText('Point(lon lat)'), 900913), 36 49 (GeomFromText('Point(lon lat)'), 900913), 37 50 'SPHEROID["GRS 1980", 6378137, 298.257222101]'); 38 51 }}}