📄 mysqlgeomcolumn.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:37 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>MysqlGeomColumn (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.data.mysql.MysqlGeomColumn class"><META NAME="keywords" CONTENT="NORMALIZED_STORAGE_TYPE"><META NAME="keywords" CONTENT="WKB_STORAGE_TYPE"><META NAME="keywords" CONTENT="GEOMETRY_META_NAME"><META NAME="keywords" CONTENT="populateData()"><META NAME="keywords" CONTENT="removeData()"><META NAME="keywords" CONTENT="getGeometry()"><META NAME="keywords" CONTENT="setFeaTableCat()"><META NAME="keywords" CONTENT="getFeaTableCat()"><META NAME="keywords" CONTENT="setFeaTableSchema()"><META NAME="keywords" CONTENT="getFeaTableSchema()"><META NAME="keywords" CONTENT="setFeaTableName()"><META NAME="keywords" CONTENT="getFeaTableName()"><META NAME="keywords" CONTENT="setGeomColName()"><META NAME="keywords" CONTENT="getGeomColName()"><META NAME="keywords" CONTENT="setGeomTableCat()"><META NAME="keywords" CONTENT="getGeomTableCat()"><META NAME="keywords" CONTENT="setGeomTableSchema()"><META NAME="keywords" CONTENT="getGeomTableSchema()"><META NAME="keywords" CONTENT="setGeomTableName()"><META NAME="keywords" CONTENT="getGeomTableName()"><META NAME="keywords" CONTENT="setStorageType()"><META NAME="keywords" CONTENT="getStorageType()"><META NAME="keywords" CONTENT="setGeomType()"><META NAME="keywords" CONTENT="getGeomType()"><META NAME="keywords" CONTENT="getSchema()"><META NAME="keywords" CONTENT="setSchema()"><META NAME="keywords" CONTENT="makeSchema()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="MysqlGeomColumn (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MysqlGeomColumn.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/geotools/data/mysql/MySQLFeatureWriter.html" title="class in org.geotools.data.mysql"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/data/mysql/MySQLSQLBuilder.html" title="class in org.geotools.data.mysql"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="MysqlGeomColumn.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.data.mysql</FONT><BR>Class MysqlGeomColumn</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>MysqlGeomColumn</B></PRE><HR><DL><DT>public class <B>MysqlGeomColumn</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL><P>MysqlGeoColumn is used by MysqlDataSource to query its specific geometric information. There should be one created for each geometry column of each feature table. It encapsulates information about the column, such as the name of the corresponding geometric table, the storage type used by that table, the type of geometry contained, and various other useful information culled from the GEOMETRY_COLUMNS table. It also generates the geometries of the column when queried with the ID from the feature table.<P><P><DL><DT><B>Author:</B></DT> <DD>Chris Holmes, Vision for New York</DD><DT><B>Module:</B></DT><DD><CODE><B>plugin/mysql</B></CODE> (<A HREF="http://maven.geotools.fr/repository/org/geotools/gt2-mysql/"><CODE>gt2-mysql.jar</CODE></A>) (<A HREF="http://maven.geotools.fr/reports/mysql/index.html">Maven report</A>) (<A HREF="http://svn.geotools.org/geotools/tags/2.3.2/plugin/mysql/src/org/geotools/data/mysql/MysqlGeomColumn.java">SVN head</A>)</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#GEOMETRY_META_NAME">GEOMETRY_META_NAME</A></B></CODE><BR> From the SFS for SQL spec, always has the meta data</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#NORMALIZED_STORAGE_TYPE">NORMALIZED_STORAGE_TYPE</A></B></CODE><BR> For get and set Storage type, see SFS for SQL spec</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#WKB_STORAGE_TYPE">WKB_STORAGE_TYPE</A></B></CODE><BR> For get and set Storage type, see SFS for SQL spec, the Well Known Binary</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#MysqlGeomColumn()">MysqlGeomColumn</A></B>()</CODE><BR> Default constructor</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#MysqlGeomColumn(java.sql.Connection, java.lang.String)">MysqlGeomColumn</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/Connection.html" title="class or interface in java.sql">Connection</A> dbConnection, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> feaTableName)</CODE><BR> A convenience constructor, when you there is an open connection, and only using flat features. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#MysqlGeomColumn(java.lang.String, java.lang.String, java.lang.String)">MysqlGeomColumn</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> feaTabName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> feaGeomColumn, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> geomTabName)</CODE><BR> Convenience constructor with the minimum meta information needed to do anything useful.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#getFeaTableCat()">getFeaTableCat</A></B>()</CODE><BR> Getter method for Feature Catalog.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#getFeaTableName()">getFeaTableName</A></B>()</CODE><BR> Getter method for feature table name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#getFeaTableSchema()">getFeaTableSchema</A></B>()</CODE><BR> Getter method for feature schema.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#getGeomColName()">getGeomColName</A></B>()</CODE><BR> Getter method for geometry column.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Geometry.html" title="class or interface in com.vividsolutions.jts.geom">Geometry</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#getGeometry(int)">getGeometry</A></B>(int geomID)</CODE><BR> Returns a jts Geometry when queried with a geometry ID.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#getGeomTableCat()">getGeomTableCat</A></B>()</CODE><BR> Getter method for Geometry Catalog.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#getGeomTableName()">getGeomTableName</A></B>()</CODE><BR> Getter method for geometry table name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#getGeomTableSchema()">getGeomTableSchema</A></B>()</CODE><BR> Getter method for geometry schema</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#getGeomType()">getGeomType</A></B>()</CODE><BR> Gets the Geometry type of the geometry column.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#getSchema()">getSchema</A></B>()</CODE><BR> Gets the schema for this geometry column.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#getStorageType()">getStorageType</A></B>()</CODE><BR> Gets the type used for storage in the geometry column.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/mysql/MysqlGeomColumn.html#makeSchema(java.sql.ResultSetMetaData, java.lang.String)">makeSchema</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/sql/ResultSetMetaData.html" title="class or interface in java.sql">ResultSetMetaData</A> metaData, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> geoColumn)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -