[postgis-commits] svn - r3237 - trunk/doc

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Tue Nov 4 04:31:30 PST 2008


Author: robe
Date: 2008-11-04 04:31:27 -0800 (Tue, 04 Nov 2008)
New Revision: 3237

Modified:
   trunk/doc/reference_new.xml
Log:
fill in all protos for kml, flag more functions as supporting 3d and circular/curve

Modified: trunk/doc/reference_new.xml
===================================================================
--- trunk/doc/reference_new.xml	2008-11-04 10:00:39 UTC (rev 3236)
+++ trunk/doc/reference_new.xml	2008-11-04 12:31:27 UTC (rev 3237)
@@ -120,6 +120,13 @@
           <imagedata fileref="images/check.png" />
         </imageobject>
 		</inlinemediaobject> This function supports 3d and will not drop the z-index.</para>
+		
+		<!-- Optionally mention Circular String Support -->
+	    <para><inlinemediaobject>
+	        <imageobject>
+	          <imagedata fileref="images/check.png" />
+	        </imageobject>
+	      </inlinemediaobject> This method supports Circular Strings and Curves </para>
       </refsection>
 
       <refsection>
@@ -139,17 +146,26 @@
 -- Add a spatial column to the table
 postgis=# SELECT AddGeometryColumn ('my_schema','my_spatial_table','the_geom',4326,'POINT',2);
 
+--Add a curvepolygon
+SELECT AddGeometryColumn ('my_schema','my_spatial_table','the_geomcp',4326,'CURVEPOLYGON',2);
+
 -- Describe the table again reveals the addition of a new "the_geom" column.
 postgis=# \d my_schema.my_spatial_table
-                              Table "my_schema.my_spatial_table"
-  Column  |   Type   |                                Modifiers                                
-----------+----------+-------------------------------------------------------------------------
- id       | integer  | not null default nextval('my_schema.my_spatial_table_id_seq'::regclass)
- the_geom | geometry | 
+   Column   |   Type   |                                Modifiers
+
+------------+----------+-------------------------------------------------------------------------
+ id         | integer  | not null default nextval('my_schema.my_spatial_table_id_seq'::regclass)
+ the_geom   | geometry |
+ the_geomcp | geometry |
 Check constraints:
     "enforce_dims_the_geom" CHECK (ndims(the_geom) = 2)
-    "enforce_geotype_the_geom" CHECK (geometrytype(the_geom) = 'POINT'::text OR the_geom IS NULL)
-    "enforce_srid_the_geom" CHECK (srid(the_geom) = 4326)</programlisting>
+    "enforce_dims_the_geomcp" CHECK (ndims(the_geomcp) = 2)
+    "enforce_geotype_the_geom" CHECK (geometrytype(the_geom) = 'POINT'::text OR
+the_geom IS NULL)
+    "enforce_geotype_the_geomcp" CHECK (geometrytype(the_geomcp) = 'CURVEPOLYGON
+'::text OR the_geomcp IS NULL)
+    "enforce_srid_the_geom" CHECK (srid(the_geom) = 4326)
+    "enforce_srid_the_geomcp" CHECK (srid(the_geomcp) = 4326)</programlisting>
       </refsection>
       
       <refsection>
@@ -229,9 +245,23 @@
           <imagedata fileref="images/check.png" />
         </imageobject>
       </inlinemediaobject> This function supports 3d geometry fields.</para>
+	  	<!-- Optionally mention Circular String Support -->
+	    <para><inlinemediaobject>
+	        <imageobject>
+	          <imagedata fileref="images/check.png" />
+	        </imageobject>
+	      </inlinemediaobject> This method supports Circular Strings and Curves </para>
       </refsection>
-      
       <refsection>
+        <title>Examples</title>
+
+        <programlisting>
+			SELECT DropGeometryColumn ('my_schema','my_spatial_table','the_geomcp');
+			----RESULT output ---
+			my_schema.my_spatial_table.the_geomcp effectively removed.
+		</programlisting>
+	  </refsection>
+      <refsection>
         <title>See Also</title>
 
         <para><xref linkend="AddGeometryColumn"/>, <xref linkend="DropGeometryTable"/></para>
@@ -285,6 +315,15 @@
         not provided.</para>
       </refsection>
       
+	  <refsection>
+        <title>Examples</title>
+
+        <programlisting>
+			SELECT DropGeometryTable ('my_schema','my_spatial_table');
+			----RESULT output ---
+			my_schema.my_spatial_table dropped.
+		</programlisting>
+	  </refsection>
       <refsection>
         <title>See Also</title>
 
@@ -997,6 +1036,13 @@
           <imagedata fileref="images/check.png" />
         </imageobject>
       </inlinemediaobject> This function supports 3d and will not drop the z-index.</para>
+	  
+	  	<!-- Optionally mention Circular String Support -->
+	    <para><inlinemediaobject>
+	        <imageobject>
+	          <imagedata fileref="images/check.png" />
+	        </imageobject>
+	      </inlinemediaobject> This method supports Circular Strings and Curves </para>
       </refsection>
       
       <refsection>
@@ -5020,6 +5066,13 @@
 				  <imagedata fileref="images/check.png" />
 				</imageobject>
 			  </inlinemediaobject> This function supports 3d and will not drop the z-index.</para>
+			  
+			<!-- Optionally mention Circular String Support -->
+			<para><inlinemediaobject>
+			<imageobject>
+			  <imagedata fileref="images/check.png" />
+			</imageobject>
+			</inlinemediaobject> This method supports Circular Strings and Curves </para>
 		  </refsection>
 		
 		
@@ -5220,6 +5273,12 @@
 			<para>Version 6: ST_AsGeoJSON(version, geom, precision,options)</para>
 			
 			<note><para>Availability: 1.3.4</para></note>
+			<!-- Optionally mention 3d support -->
+			<para><inlinemediaobject>
+	        <imageobject>
+	          <imagedata fileref="images/check.png" />
+	        </imageobject>
+	      </inlinemediaobject> This function supports 3d and will not drop the z-index.</para>
 	  </refsection>
 	
 	  <refsection>
@@ -5235,7 +5294,16 @@
 
 {"type":"MultiLineString","coordinates":[[[-89.734634999999997,31.492072000000000],
 [-89.734955999999997,31.492237999999997]]]}
-(1 row)</programlisting>
+(1 row)
+--3d point
+SELECT ST_AsGeoJSON('LINESTRING(1 2 3, 4 5 6)');
+
+st_asgeojson                                                                      
+-----------------------------------------------------------------------------------------
+ {"type":"LineString","coordinates":[[1.000000000000000,2.000000000000000,3.000000000000000],
+ [4.000000000000000,5.000000000000000,6.000000000000000]]}
+
+</programlisting>
 	  </refsection>
 	</refentry>		
 	<refentry id="ST_AsGML">
@@ -5324,6 +5392,19 @@
 		<note>
 		  <para>Availability: 1.2.2</para>
 		</note>
+		
+		<!-- Optionally mention 3d support -->	
+		<para><inlinemediaobject>
+			<imageobject>
+			  <imagedata fileref="images/check.png" />
+			</imageobject>
+		  </inlinemediaobject> This function supports 3d and will not drop the z-index.</para>
+		<!-- Optionally mention Circular String Support -->
+		<para><inlinemediaobject>
+			<imageobject>
+			  <imagedata fileref="images/check.png" />
+			</imageobject>
+			</inlinemediaobject> This method supports Circular Strings and Curves </para>
 	  </refsection>
 	
 	  <refsection>
@@ -5347,9 +5428,7 @@
 	  <refnamediv>
 		<refname>ST_AsKML</refname>
 	
-		<refpurpose>Return the geometry as a KML element. Second argument may be
-            used to reduce the maximum number of significant digits used in
-            output (defaults to 15).</refpurpose>
+		<refpurpose>Return the geometry as a KML element. Several variants. Default version=2, default max_sig_digits=15</refpurpose>
 	  </refnamediv>
 	
 	  <refsynopsisdiv>
@@ -5361,24 +5440,44 @@
 			<funcprototype>
 				<funcdef>text <function>ST_AsKML</function></funcdef>
 				<paramdef><type>geometry </type> <parameter>g1</parameter></paramdef>
-				<paramdef><type>integer </type> <parameter>max_num_decimal_digits</parameter></paramdef>
+				<paramdef><type>integer </type> <parameter>max_sig_digits</parameter></paramdef>
 			</funcprototype>
-			<!-- TODO: itemize other prototypes - 3 more -->
+			<funcprototype>
+				<funcdef>text <function>ST_AsKML</function></funcdef>
+				<paramdef><type>integer </type> <parameter>version</parameter></paramdef>
+				<paramdef><type>geometry </type> <parameter>geom1</parameter></paramdef>
+			</funcprototype>
+			<funcprototype>
+				<funcdef>text <function>ST_AsKML</function></funcdef>
+				<paramdef><type>integer </type> <parameter>version</parameter></paramdef>
+				<paramdef><type>geometry </type> <parameter>geom1</parameter></paramdef>
+				<paramdef><type>integer </type> <parameter>max_sig_digits</parameter></paramdef>
+			</funcprototype>
 		</funcsynopsis>
 	  </refsynopsisdiv>
 	
 	  <refsection>
 		<title>Description</title>
 	
-		<para>Return the geometry as a Keyhole Markup Language (KML) element. Second argument may be
-            used to reduce the maximum number of significant digits used in
-            output (defaults to 15).</para>
+		<para>Return the geometry as a Keyhole Markup Language (KML) element. There are several variants of this function.
+			maximum number of significant digits used in
+            output (defaults to 15) and version default to 2.</para>
 			
-		<!-- TODO: Itemize defaults for each function -->
+		<para>Version 1: ST_AsKML(geom) / version=2 max_sig_digits=15</para>
+		<para>Version 2: ST_AsKML(geom, max_sig_digits) / version=2 </para>
+		<para>Version 3: ST_AsKML(version, geom) / max_sig_digits=15 </para>
+		<para>Version 4: ST_AsGeoJSON(version, geom, max_sig_digits) </para>
 
 		<note>
 		  <para>Availability: 1.2.2 - later variants that include version param came in 1.3.2</para>
 		</note>
+		
+		<!-- Optionally mention 3d support -->
+	    <para><inlinemediaobject>
+	        <imageobject>
+	          <imagedata fileref="images/check.png" />
+	        </imageobject>
+	      </inlinemediaobject> This function supports 3d and will not drop the z-index.</para>
 	  </refsection>
 	
 	  <refsection>
@@ -5388,6 +5487,8 @@
 		st_askml
 		--------
 		
+		--3d linestring
+		 SELECT ST_AsKML('SRID=4326;LINESTRING(1 2 3, 4 5 6)');
 		</programlisting>
 	  </refsection>
 	</refentry>



More information about the postgis-commits mailing list