Changes between Version 26 and Version 27 of UsersWikiplpgsqlfunctions
- Timestamp:
- 08/05/20 10:23:28 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiplpgsqlfunctions
v26 v27 60 60 }}} 61 61 62 * '''Convert degree minutes seconds to long lat decimals ''' 62 == Convert degree minutes seconds to lon/lat decimals == 63 63 64 64 This is from Simon Greener's article [http://www.spatialdbadvisor.com/postgis_tips_tricks/115/dms2dd-for-postgis/ DMS2DD for PostGIS] … … 157 157 158 158 159 * '''Find Length of Day for a given location and date''' 159 == Find Length of Day for a given location and date == 160 160 {{{ 161 161 #!sql … … 179 179 }}} 180 180 181 * '''Create Ellipse (x,y,rx,ry,rotation,#of segments in 1/4 of ellipse)''' 181 == Create Ellipse (x,y,rx,ry,rotation,#of segments in 1/4 of ellipse) == 182 182 {{{ 183 183 #!sql … … 190 190 }}} 191 191 192 * '''Return a multilinestring consisting of the interior and exterior rings of a polygon/multipolygon''' 192 == Construct a multilinestring consisting of the interior and exterior rings of a polygon/multipolygon == 193 193 194 194 ''This already exists in PostGIS: see ST_Boundary(geometry)'' … … 220 220 }}} 221 221 222 * '''Shift a straight line along dist units along its perpendicular''' 222 == Shift a straight line along dist units along its perpendicular == 223 223 This was written before the existence of ST_OffSetCurve. Using ST_OffsetCurve(http://postgis.net/docs/ST_OffsetCurve.html) does the same and can handle non-straight lines 224 224