<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Spatial classes</title>
    <link>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/</link>
    <description>Recent content in Spatial classes on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Data-Analysis: Point</title>
      <link>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/point/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/point/</guid>
      <description>
        
        
        &lt;p&gt;A location in two-dimensional space that is identified by one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;X and Y coordinates&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Longitude and latitude values&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A point has dimension 0 and no boundary.&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example uses a GEOMETRY point:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE point_geo (gid int, geom GEOMETRY(100));
CREATE TABLE
=&amp;gt; COPY point_geo(gid, gx filler LONG VARCHAR, geom AS ST_GeomFromText(gx)) FROM stdin delimiter &amp;#39;,&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;1, POINT(3 5)
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geom) FROM point_geo;
 gid |  ST_AsText
-----+-------------
   1 | POINT (3 5)
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example uses a GEOGRAPHY point:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE point_geog (gid int, geog geography(100));
CREATE TABLE
=&amp;gt; COPY point_geog(gid, gx filler LONG VARCHAR, geog AS ST_GeographyFromText(gx)) FROM stdin delimiter &amp;#39;,&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;1, POINT(42 71)
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geog) FROM point_geog;
 gid |   ST_AsText
-----+---------------
   1 | POINT (42 71)
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Data-Analysis: Multipoint</title>
      <link>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/multipoint/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/multipoint/</guid>
      <description>
        
        
        &lt;p&gt;A set of one or more points. A multipoint object has dimension 0 and no boundary.&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example uses a GEOMETRY multipoint:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE mpoint_geo (gid int, geom GEOMETRY(1000));
CREATE TABLE
=&amp;gt; COPY mpoint_geo(gid, gx filler LONG VARCHAR, geom AS ST_GeomFromText(gx)) FROM stdin delimiter &amp;#39;|&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;1|MULTIPOINT(4 7, 8 10)
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geom) FROM mpoint_geo;
 gid |       st_astext
-----+-----------------------
   1 | MULTIPOINT (7 8, 6 9)
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example uses a GEOGRAPHY multipoint:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE mpoint_geog (gid int, geog GEOGRAPHY(1000));
CREATE TABLE
=&amp;gt; COPY mpoint_geog(gid, gx filler LONG VARCHAR, geog AS ST_GeographyFromText(gx)) FROM stdin delimiter &amp;#39;|&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;1|MULTIPOINT(42 71, 41.4 70)
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geom) FROM mpoint_geo;
 gid |       st_astext
-----+-----------------------
   1 | MULTIPOINT (42 71, 41.4 70)
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Data-Analysis: Linestring</title>
      <link>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/linestring/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/linestring/</guid>
      <description>
        
        
        &lt;p&gt;One or more connected lines, identified by pairs of consecutive points. A linestring has dimension 1. The boundary of a linestring is a multipoint object containing its start and end points.&lt;/p&gt;
&lt;p&gt;The following are examples of linestrings:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../../../../../images/place/linestring/linestring-1.png&#34; alt=&#34;&#34;&gt;&lt;img src=&#34;../../../../../images/place/linestring/linestring-2.png&#34; alt=&#34;&#34;&gt;&lt;img src=&#34;../../../../../images/place/linestring/linestring-3.png&#34; alt=&#34;&#34;&gt;&lt;img src=&#34;../../../../../images/place/linestring/linestring-4.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example uses the GEOMETRY type to create a table, use copy to load a linestring to the table, and then queries the table to view the linestring:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE linestring_geom (gid int, geom GEOMETRY(1000));
CREATE TABLE
=&amp;gt; COPY linestring_geom(gid, gx filler LONG VARCHAR, geom AS ST_GeomFromText(gx)) FROM stdin delimiter &amp;#39;|&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;1|LINESTRING(0 0, 1 1, 2 2, 3 4, 2 4, 1 5)
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geom) FROM linestring_geom;
 gid |                 ST_AsText
-----+-------------------------------------------
   1 | LINESTRING (0 0, 1 1, 2 2, 3 4, 2 4, 1 5)
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example uses the GEOGRAPHY type to create a table, use copy to load a linestring to the table, and then queries the table to view the linestring:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE linestring_geog (gid int, geog GEOGRAPHY(1000));
CREATE TABLE
=&amp;gt; COPY linestring_geog(gid, gx filler LONG VARCHAR, geog AS ST_GeographyFromText(gx)) FROM stdin delimiter &amp;#39;|&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;1|LINESTRING(42.1 71, 41.4 70, 41.3 72.9, 42.99 71.46, 44.47 73.21)
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geog) FROM linestring_geog;
 gid |                             ST_AsText
-----+--------------------------------------------------------------------
   1 | LINESTRING (42.1 71, 41.4 70, 41.3 72.9, 42.99 71.46, 44.47 73.21)
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Data-Analysis: Multilinestring</title>
      <link>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/multilinestring/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/multilinestring/</guid>
      <description>
        
        
        &lt;p&gt;A collection of zero or more linestrings. A multilinestring has no dimension. The boundary of a multilinestring is a multipoint object containing the start and end points of all the linestrings.&lt;/p&gt;
&lt;p&gt;The following are examples of multilinestrings:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../../../../../images/place/multilinestring/multilinestring-1.png&#34; alt=&#34;&#34;&gt;&lt;img src=&#34;../../../../../images/place/multilinestring/multilinestring-3.png&#34; alt=&#34;&#34;&gt;&lt;img src=&#34;../../../../../images/place/multilinestring/multilinestring-2.png&#34; alt=&#34;&#34;&gt;&lt;img src=&#34;../../../../../images/place/multilinestring/multilinestring-4.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example uses the GEOMETRY type to create a table, use copy to load a multilinestring to the table, and then queries the table to view the multilinestring:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE multilinestring_geom (gid int, geom GEOMETRY(1000));
CREATE TABLE
=&amp;gt; COPY multilinestring_geom(gid, gx filler LONG VARCHAR, geom AS ST_GeomFromText(gx)) FROM stdin delimiter &amp;#39;|&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;1|MULTILINESTRING((1 5, 2 4, 5 3, 6 6),(3 5, 3 7))
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geom) FROM multilinestring_geom;
 gid |                     ST_AsText
-----+----------------------------------------------------
   1 | MULTILINESTRING ((1 5, 2 4, 5 3, 6 6), (3 5, 3 7))
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example uses the GEOGRAPHY type to create a table, use copy to load a multilinestring to the table, and then queries the table to view the multilinestring:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE multilinestring_geog (gid int, geog GEOGRAPHY(1000));
CREATE TABLE
=&amp;gt; COPY multilinestring_geog(gid, gx filler LONG VARCHAR, geog AS ST_GeographyFromText(gx)) FROM stdin delimiter &amp;#39;|&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;1|MULTILINESTRING((42.1 71, 41.4 70, 41.3 72.9), (42.99 71.46, 44.47 73.21))
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geog) FROM multilinestring_geog;
 gid |                                  ST_AsText
-----+----------------------------------------------------------------------------
   1 | MULTILINESTRING((42.1 71, 41.4 70, 41.3 72.9), (42.99 71.46, 44.47 73.21))
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Data-Analysis: Polygon</title>
      <link>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/polygon/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/polygon/</guid>
      <description>
        
        
        &lt;p&gt;An object identified by a set of closed linestrings. A polygon can have one or more holes, as defined by interior boundaries, but all points must be connected. Two examples of polygons are:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../../../../../images/place/polygon/polygon-1.png&#34; alt=&#34;&#34;&gt;&lt;img src=&#34;../../../../../images/place/polygon/polygon-2.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;inclusive-and-exclusive-polygons&#34;&gt;Inclusive and exclusive polygons&lt;/h2&gt;
&lt;p&gt;Polygons that include their points in clockwise order include all space inside the perimeter of the polygon and exclude all space outside that perimeter. Polygons that include their points in counterclockwise order exclude all space inside the perimeter and include all space outside that perimeter.&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example uses the GEOMETRY type to create a table, use copy to load a polygon into the table, and then queries the table to view the polygon:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE polygon_geom (gid int, geom GEOMETRY(1000));
CREATE TABLE
=&amp;gt; COPY polygon_geom(gid, gx filler LONG VARCHAR, geom AS ST_GeomFromText(gx)) FROM stdin delimiter &amp;#39;|&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;1|POLYGON(( 2 6, 2 9, 6 9, 7 7, 4 6, 2 6))
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geom) FROM polygon_geom;
 gid |                 ST_AsText
-----+------------------------------------------
   1 | POLYGON((2 6, 2 9, 6 9, 7 7, 4 6, 2 6))
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example uses the GEOGRAPHY type to create a table, use copy to load a polygon into the table, and then queries the table to view the polygon:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE polygon_geog (gid int, geog GEOGRAPHY(1000));
CREATE TABLE
=&amp;gt; COPY polygon_geog(gid, gx filler LONG VARCHAR, geog AS ST_GeographyFromText(gx)) FROM stdin delimiter &amp;#39;|&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;1|POLYGON((42.1 71, 41.4 70, 41.3 72.9, 44.47 73.21, 42.99 71.46, 42.1 71))
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geog) FROM polygon_geog;
 gid |                                ST_AsText
-----+---------------------------------------------------------------------------
   1 | POLYGON((42.1 71, 41.4 70, 41.3 72.9, 44.47 73.21, 42.99 71.46, 42.1 71))
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Data-Analysis: Multipolygon</title>
      <link>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/multipolygon/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/data-analysis/geospatial-analytics/ogc-spatial-definitions/spatial-classes/multipolygon/</guid>
      <description>
        
        
        &lt;p&gt;A collection of zero or more polygons that do not overlap.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../../../../../images/place/multipolygon/multipolygon-1.png&#34; alt=&#34;&#34;&gt;&lt;img src=&#34;../../../../../images/place/multipolygon/multipolygon-2.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example uses the GEOMETRY type to create a table, use copy to load a multipolygon into the table, and then queries the table to view the polygon:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE multipolygon_geom (gid int, geom GEOMETRY(1000));
CREATE TABLE
=&amp;gt; COPY multipolygon_geom(gid, gx filler LONG VARCHAR, geom AS ST_GeomFromText(gx)) FROM stdin delimiter &amp;#39;|&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;9|MULTIPOLYGON(((2 6, 2 9, 6 9, 7 7, 4 6, 2 6)),((0 0, 0 5, 1 0, 0 0)),((0 2, 2 5, 4 5, 0 2)))
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geom) FROM polygon_geom;
 gid |                                           ST_AsText
-----+----------------------------------------------------------------------------------------------
   9 | MULTIPOLYGON(((2 6, 2 9, 6 9, 7 7, 4 6, 2 6)),((0 0, 0 5, 1 0, 0 0)),((0 2, 2 5, 4 5, 0 2)))
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following example uses the GEOGRAPHY type to create a table, use copy to load a multipolygon into the table, and then queries the table to view the polygon:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE multipolygon_geog (gid int, geog GEOGRAPHY(1000));
CREATE TABLE
=&amp;gt; COPY polygon_geog(gid, gx filler LONG VARCHAR, geog AS ST_GeographyFromText(gx)) FROM stdin delimiter &amp;#39;|&amp;#39;;
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
&amp;gt;&amp;gt;1|POLYGON((42.1 71, 41.4 70, 41.3 72.9, 44.47 73.21, 42.99 71.46, 42.1 71))
&amp;gt;&amp;gt;\.
=&amp;gt; SELECT gid, ST_AsText(geog) FROM polygon_geog;
 gid |                                ST_AsText
-----+---------------------------------------------------------------------------
   1 | POLYGON(((42.1 71, 41.4 70, 41.3 72.9, 42.1 71)),((44.47 73.21, 42.99 71.46, 42.1 71, 44.47 73.21)))
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
  </channel>
</rss>
