⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datautilities.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 5 页
字号:
public static int <B>compare</B>(<A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;typeA,                          <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;typeB)</PRE><DL><DD>Compare operation for FeatureType.  <p> Results in: </p>  <ul> <li> 1: if typeA is a sub type/reorder/renamespace of typeB </li> <li> 0: if typeA and typeB are the same type </li> <li> -1: if typeA is not subtype of typeB </li> </ul>  <p> Comparison is based on AttributeTypes, an IOException is thrown if the AttributeTypes are not compatiable. </p>  <p> Namespace is not considered in this opperations. You may still need to reType to get the correct namesapce, or reorder. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>typeA</CODE> - FeatureType beind compared<DD><CODE>typeB</CODE> - FeatureType being compared against</DL></DD></DL><HR><A NAME="isMatch(org.geotools.feature.AttributeType, org.geotools.feature.AttributeType)"><!-- --></A><H3>isMatch</H3><PRE>public static boolean <B>isMatch</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;a,                              <A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;b)</PRE><DL><DD>DOCUMENT ME!<P><DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - DOCUMENT ME!<DD><CODE>b</CODE> - DOCUMENT ME!<DT><B>Returns:</B><DD>DOCUMENT ME!</DL></DD></DL><HR><A NAME="reType(org.geotools.feature.FeatureType, org.geotools.feature.Feature)"><!-- --></A><H3>reType</H3><PRE>public static <A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> <B>reType</B>(<A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;featureType,                             <A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A>&nbsp;feature)                      throws <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>Creates duplicate of feature adjusted to the provided featureType.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>featureType</CODE> - FeatureType requested<DD><CODE>feature</CODE> - Origional Feature from DataStore<DT><B>Returns:</B><DD>An instance of featureType based on feature<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE> - If opperation could not be performed</DL></DD></DL><HR><A NAME="template(org.geotools.feature.FeatureType)"><!-- --></A><H3>template</H3><PRE>public static <A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> <B>template</B>(<A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;featureType)                        throws <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>Constructs an empty feature to use as a Template for new content.  <p> We may move this functionality to FeatureType.create( null )? </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>featureType</CODE> - Type of feature we wish to create<DT><B>Returns:</B><DD>A new Feature of type featureType<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE> - if we could not create featureType instance with acceptable             default values</DL></DD></DL><HR><A NAME="template(org.geotools.feature.FeatureType, java.lang.String)"><!-- --></A><H3>template</H3><PRE>public static <A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> <B>template</B>(<A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;featureType,                               <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;featureID)                        throws <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>DOCUMENT ME!<P><DD><DL><DT><B>Parameters:</B><DD><CODE>featureType</CODE> - DOCUMENT ME!<DD><CODE>featureID</CODE> - DOCUMENT ME!<DT><B>Returns:</B><DD>DOCUMENT ME!<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="defaultValues(org.geotools.feature.FeatureType)"><!-- --></A><H3>defaultValues</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] <B>defaultValues</B>(<A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;featureType)                              throws <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>DOCUMENT ME!<P><DD><DL><DT><B>Parameters:</B><DD><CODE>featureType</CODE> - DOCUMENT ME!<DT><B>Returns:</B><DD>DOCUMENT ME!<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="template(org.geotools.feature.FeatureType, java.lang.Object[])"><!-- --></A><H3>template</H3><PRE>public static <A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> <B>template</B>(<A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;featureType,                               <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;atts)                        throws <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>DOCUMENT ME!<P><DD><DL><DT><B>Parameters:</B><DD><CODE>featureType</CODE> - DOCUMENT ME!<DD><CODE>atts</CODE> - DOCUMENT ME!<DT><B>Returns:</B><DD>DOCUMENT ME!<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="template(org.geotools.feature.FeatureType, java.lang.String, java.lang.Object[])"><!-- --></A><H3>template</H3><PRE>public static <A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> <B>template</B>(<A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;featureType,                               <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;string,                               <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;emptyAtts)                        throws <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE></DL></DD></DL><HR><A NAME="defaultValue(java.lang.Class)"><!-- --></A><H3>defaultValue</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>defaultValue</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;type)</PRE><DL><DD>Returns a non-null default value for the class that is passed in.  This is a helper class an can't create a  default class for any type but it does support: <ul> <li>String</li> <li>Object - will return empty string</li> <li>Number</li> <li>Character</li> <li>JTS Geometries</li> </ul><P><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - <DT><B>Returns:</B><DD></DL></DD></DL><HR><A NAME="defaultValues(org.geotools.feature.FeatureType, java.lang.Object[])"><!-- --></A><H3>defaultValues</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] <B>defaultValues</B>(<A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;featureType,                                     <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;values)                              throws <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>DOCUMENT ME!<P><DD><DL><DT><B>Parameters:</B><DD><CODE>featureType</CODE> - DOCUMENT ME!<DD><CODE>values</CODE> - DOCUMENT ME!<DT><B>Returns:</B><DD>DOCUMENT ME!<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE> - DOCUMENT ME!<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ArrayIndexOutOfBoundsException.html" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</A></CODE> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="defaultValue(org.geotools.feature.AttributeType)"><!-- --></A><H3>defaultValue</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>defaultValue</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;attributeType)                           throws <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>Provides a defautlValue for attributeType.  <p> Will return null if attributeType isNillable(), or attempt to use Reflection, or attributeType.parse( null ) </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>attributeType</CODE> - <DT><B>Returns:</B><DD>null for nillable attributeType, attempt at reflection<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE> - If value cannot be constructed for attribtueType</DL></DD></DL><HR><A NAME="reader(org.geotools.feature.Feature[])"><!-- --></A><H3>reader</H3><PRE>public static <A HREF="../../../org/geotools/data/FeatureReader.html" title="interface in org.geotools.data">FeatureReader</A> <B>reader</B>(<A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A>[]&nbsp;features)                            throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Creates a FeatureReader for testing.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -