]> granicus.if.org Git - postgis/commitdiff
De-dupe doc entries
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 13 May 2015 19:08:47 +0000 (19:08 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 13 May 2015 19:08:47 +0000 (19:08 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13500 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_constructor.xml

index 531448328bcdfefcff214b671a395d1712677df3..583d24bcdc77345c8fd2eba1ac22303cd35cca47 100644 (file)
@@ -304,6 +304,14 @@ SELECT ST_AsText(ST_GeomFromTWKB(ST_AsTWKB('LINESTRING(126 34, 127 35)'::geometr
  LINESTRING(126 34, 127 35)
 (1 row)
 
+
+SELECT ST_AsEWKT(
+  ST_GeomFromTWKB(E'\\x620002f7f40dbce4040105')
+);
+                                         st_asewkt
+------------------------------------------------------
+LINESTRING(-113.98 39.198,-113.981 39.195)
+(1 row)
 </programlisting>
          </refsection>
           <refsection>
@@ -1027,69 +1035,6 @@ SELECT
        </refentry>
 
 
-<refentry id="ST_GeomFromTWKB">
-         <refnamediv>
-               <refname>ST_GeomFromTWKB</refname>
-               <refpurpose>Creates a geometry instance from a Tiny Well-Known Binary geometry
-               representation (TWKB).</refpurpose>
-         </refnamediv>
-
-         <refsynopsisdiv>
-               <funcsynopsis>
-                 <funcprototype>
-                       <funcdef>geometry <function>ST_GeomFromTWKB</function></funcdef>
-                       <paramdef><type>bytea </type> <parameter>geom</parameter></paramdef>
-                 </funcprototype>
-               </funcsynopsis>
-         </refsynopsisdiv>
-
-         <refsection>
-               <title>Description</title>
-
-               <para>The <varname>ST_GeomFromTWKB</varname> function, takes a tiny well-known
-               binary representation of a geometry and creates an instance of the appropriate
-               geometry type.</para>
-
-               <para>SRID always defaults to 0 (Unknown).</para>
-               <note>
-                 <para>TWKB doesn't make any difference of Z and M. So a 3D geoemtry in TWKB will always be a GeometryZ, like PointZ when converted to PostGIS geometry</para>
-               </note> 
-         </refsection>
-
-
-         <refsection>
-               <title>Examples</title>
-
-               <programlisting>--Although bytea rep contains single \, these need to be escaped when inserting into a table 
-               -- unless standard_conforming_strings is set to on.
-SELECT ST_AsEWKT(
-ST_GeomFromTWKB(E'\\x304202f7f40dbce4040105')
-);
-                                         st_asewkt
-------------------------------------------------------
-LINESTRING(-113.98 39.198,-113.981 39.195)
-(1 row)
-
-SELECT
-  ST_AsText(
-       ST_GeomFromTWKB(
-         ST_AsTWKB('POINT(2 5)'::geometry,0)
-       )
-  );
- st_astext
-------------
- POINT(2 5)
-(1 row)</programlisting>
-         </refsection>
-
-         <!-- Optionally add a "See Also" section -->
-         <refsection>
-               <title>See Also</title>
-
-               <para><xref linkend="ST_GeomFromWKB" />,<xref linkend="ST_AsTWKB" />,<xref linkend="ST_WKBToSQL" />, <xref linkend="ST_AsBinary" />, <xref linkend="ST_GeomFromEWKB" /></para>
-         </refsection>
-       </refentry>
-
   <refentry id="ST_LineFromEncodedPolyline">
     <refnamediv>
     <refname>ST_LineFromEncodedPolyline</refname>