<funcsynopsis>
<funcprototype>
<funcdef>text <function>ST_AsSVG</function></funcdef>
- <paramdef><type>geometry </type> <parameter>g1</parameter></paramdef>
- </funcprototype>
- <funcprototype>
- <funcdef>text <function>ST_AsSVG</function></funcdef>
- <paramdef><type>geography </type> <parameter>g1</parameter></paramdef>
- </funcprototype>
- <funcprototype>
- <funcdef>text <function>ST_AsSVG</function></funcdef>
- <paramdef><type>geometry </type> <parameter>g1</parameter></paramdef>
- <paramdef><type>integer </type> <parameter>rel</parameter></paramdef>
- </funcprototype>
- <funcprototype>
- <funcdef>text <function>ST_AsSVG</function></funcdef>
- <paramdef><type>geography </type> <parameter>g1</parameter></paramdef>
- <paramdef><type>integer </type> <parameter>rel</parameter></paramdef>
+ <paramdef><type>geometry </type> <parameter>geom</parameter></paramdef>
+ <paramdef choice='opt'><type>integer </type> <parameter>rel=0</parameter></paramdef>
+ <paramdef choice='opt'><type>integer </type> <parameter>maxdecimaldigits=15</parameter></paramdef>
</funcprototype>
<funcprototype>
<funcdef>text <function>ST_AsSVG</function></funcdef>
- <paramdef><type>geometry </type> <parameter>g1</parameter></paramdef>
- <paramdef><type>integer </type> <parameter>rel</parameter></paramdef>
- <paramdef><type>integer </type> <parameter>maxdecimaldigits</parameter></paramdef>
- </funcprototype>
- <funcprototype>
- <funcdef>text <function>ST_AsSVG</function></funcdef>
- <paramdef><type>geography </type> <parameter>g1</parameter></paramdef>
+ <paramdef><type>geography </type> <parameter>geog</parameter></paramdef>
<paramdef><type>integer </type> <parameter>rel</parameter></paramdef>
<paramdef><type>integer </type> <parameter>maxdecimaldigits</parameter></paramdef>
</funcprototype>
<para>Availability: 1.2.2. Availability: 1.4.0 Changed in PostGIS 1.4.0 to include L command in absolute path to conform to <ulink
url="http://www.w3.org/TR/SVG/paths.html#PathDataBNF">http://www.w3.org/TR/SVG/paths.html#PathDataBNF</ulink></para>
</note>
+ <para>Changed: 2.0.0 to use default args and support named args</para>
</refsection>
<refsection>
<refentry id="RT_ST_HillShade">
<refnamediv>
<refname>ST_HillShade</refname>
- <refpurpose>Returns the hypothetical illumination of a raster band using azimuth, altitude, brightness, and elevation scale inputs</refpurpose>
+ <refpurpose>Returns the hypothetical illumination of a raster band using provided azimuth, altitude, brightness, and elevation scale inputs. Useful for visualizing terrain.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
-- SVG OUTPUT
--
--- ST_AsSVG(geography, precision, rel)
-CREATE OR REPLACE FUNCTION ST_AsSVG(geography,int4,int4)
- RETURNS text
- AS 'MODULE_PATHNAME','geography_as_svg'
- LANGUAGE 'C' IMMUTABLE STRICT;
-
--- ST_AsSVG(geography, precision) / rel=0
-CREATE OR REPLACE FUNCTION ST_AsSVG(geography,int4)
- RETURNS text
- AS 'MODULE_PATHNAME','geography_as_svg'
- LANGUAGE 'C' IMMUTABLE STRICT;
-
--- ST_AsSVG(geography) / precision=15, rel=0
-CREATE OR REPLACE FUNCTION ST_AsSVG(geography)
+-- ST_AsSVG(geography, rel, precision)
+-- rel int4 DEFAULT 0, maxdecimaldigits int4 DEFAULT 15
+-- Changed 2.0.0 to use default args and named args
+CREATE OR REPLACE FUNCTION ST_AsSVG(geog geography,rel int4 DEFAULT 0,maxdecimaldigits int4 DEFAULT 15)
RETURNS text
AS 'MODULE_PATHNAME','geography_as_svg'
LANGUAGE 'C' IMMUTABLE STRICT;
$$ SELECT ST_AsSVG($1::geometry); $$
LANGUAGE 'SQL' IMMUTABLE STRICT;
-
--
-- GML OUTPUT
--
-- SVG OUTPUT\r
-----------------------------------------------------------------------\r
-- Availability: 1.2.2\r
-CREATE OR REPLACE FUNCTION ST_AsSVG(geometry,int4,int4)\r
- RETURNS TEXT\r
- AS 'MODULE_PATHNAME','LWGEOM_asSVG'\r
- LANGUAGE 'C' IMMUTABLE STRICT;\r
-\r
--- Availability: 1.2.2\r
-CREATE OR REPLACE FUNCTION ST_AsSVG(geometry,int4)\r
- RETURNS TEXT\r
- AS 'MODULE_PATHNAME','LWGEOM_asSVG'\r
- LANGUAGE 'C' IMMUTABLE STRICT;\r
-\r
--- Availability: 1.2.2\r
-CREATE OR REPLACE FUNCTION ST_AsSVG(geometry)\r
+-- Changed: 2.0.0 changed to use default args and allow calling by named args\r
+CREATE OR REPLACE FUNCTION ST_AsSVG(geom geometry,rel int4 DEFAULT 0,maxdecimaldigits int4 DEFAULT 15)\r
RETURNS TEXT\r
AS 'MODULE_PATHNAME','LWGEOM_asSVG'\r
LANGUAGE 'C' IMMUTABLE STRICT;\r
DROP FUNCTION IF EXISTS box2d_intersects(box2d, box2d);
DROP FUNCTION IF EXISTS st_area(geography); -- this one changed to use default parameters
DROP FUNCTION IF EXISTS st_asx3d(geometry); -- this one changed to use default parameters so full function deals with it
+DROP FUNCTION IF EXISTS st_assvg(geometry); -- changed to use default args
+DROP FUNCTION IF EXISTS st_assvg(geometry,int4); -- changed to use default args
+DROP FUNCTION IF EXISTS st_assvg(geography); -- changed to use default args
+DROP FUNCTION IF EXISTS st_assvg(geography,int4); -- changed to use default args
DROP FUNCTION IF EXISTS st_box2d_overleft(box2d, box2d);
DROP FUNCTION IF EXISTS st_box2d_overright(box2d, box2d);
DROP FUNCTION IF EXISTS st_box2d_left(box2d, box2d);