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

📄 vpffeaturetype.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/FeatureType.html#find(org.geotools.feature.AttributeType)">find</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - The type to search for.<DT><B>Returns:</B><DD>-1 if not found, a zero-based index if found.</DL></DD></DL><HR><A NAME="getAncestors()"><!-- --></A><H3>getAncestors</H3><PRE>public <A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>[] <B>getAncestors</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>Obtain an array of this FeatureType's direct ancestors. Implementors should return a non-null array (may be of length 0). <p> <ul> <li>length 0 - a root FeatureType <li>length 1 - singe inhieratance <li>length 1+ - multiple inheiratance, order is not significant </ul> </p> GetAncestors() indicates *just* the direct parents of this FeatureType. It capures the inheirtance relationship from the OGC overview document. </p> <p> Example Code:<pre><code> public FeatureType getAncestors()}     return new FeatureType[]{ getSuper(), }; } </code></pre> </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/FeatureType.html#getAncestors()">getAncestors</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>An array of ancestors.</DL></DD></DL><HR><A NAME="getAttributeCount()"><!-- --></A><H3>getAttributeCount</H3><PRE>public int <B>getAttributeCount</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>The number of attribues defined by this schema. <p> This method to allows access to the complete schema as defined by this FeatureType and its ancestors. </p> <p> <ul> Notes: <li> <li>for FeatureType with no super type this count value is the the     same as getAttributeTypes().length. </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/FeatureType.html#getAttributeCount()">getAttributeCount</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>number of distinct attributeTypes available, taking ancestors and taking overrides         into account.</DL></DD></DL><HR><A NAME="getAttributeType(int)"><!-- --></A><H3>getAttributeType</H3><PRE>public <A HREF="../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A> <B>getAttributeType</B>(int&nbsp;position)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>Gets the schema attributeType at the specified index. <p> The index is specified with respect to the entire Schema (as defined by this FeatureType and it's ancestors). <p> <ul> The index value should not be used with either: <li>FeatureType.getAttributeTypes()[index] - as it defines only attributes contributed by this FeatureType <li>Feature.getAttribute( index ) - as attributes order may or may not be in sequence </ul> </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/FeatureType.html#getAttributeType(int)">getAttributeType</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - a integer index into the complete schema represented by                  this FeatureType and its ancestors<DT><B>Returns:</B><DD>the attribute type at the specified position</DL></DD></DL><HR><A NAME="getAttributeType(java.lang.String)"><!-- --></A><H3>getAttributeType</H3><PRE>public <A HREF="../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A> <B>getAttributeType</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>&nbsp;xPath)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>Gets the attributeType at this xPath, if the specified attributeType does not exist then <code>null</code> is returned. <p> Question: it is unclear how this interacts with the complete schema defined by this FeatureType and its ancestors (in which a given xpath may refer to several AttributeTypes as restrictions are applied. </p> <p> Perhaps this method should be restricted to a FlatFeatureType? Or should have the option of returning an array of matching AttributeType in order of inheiritence? </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/FeatureType.html#getAttributeType(java.lang.String)">getAttributeType</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>xPath</CODE> - XPath pointer to attribute type.<DT><B>Returns:</B><DD>AttributeType, or null if unavaialble</DL></DD></DL><HR><A NAME="getAttributeTypes()"><!-- --></A><H3>getAttributeTypes</H3><PRE>public <A HREF="../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>[] <B>getAttributeTypes</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>AttributeTypes for this FeatureType, all attributes defined by this FeatureType and its super types define schema for feature instances. <p> The provided array of AttributeTypes should be considered as adding to (or overriding) the the AttribtueTypes defined by this FeatureTypes ancestors. </p> <p> Note Well: Client code should not consider the index provided by the find( attName ) method as a valid index into the returned array. </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/FeatureType.html#getAttributeTypes()">getAttributeTypes</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Array of AttributeType describing this schema, array may be length 0, but should         not be null</DL></DD></DL><HR><A NAME="getCoverage()"><!-- --></A><H3>getCoverage</H3><PRE>public <A HREF="../../../../org/geotools/data/vpf/VPFCoverage.html" title="class in org.geotools.data.vpf">VPFCoverage</A> <B>getCoverage</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getDefaultGeometry()"><!-- --></A><H3>getDefaultGeometry</H3><PRE>public <A HREF="../../../../org/geotools/feature/GeometryAttributeType.html" title="interface in org.geotools.feature">GeometryAttributeType</A> <B>getDefaultGeometry</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>Gets the default geometry AttributeType. <p> If the FeatureType has more one geometry it is up to the implementor to determine which geometry is the default. If working with multiple geometries it is best to get the attributeTypes and iterate through them, checking for instances of GeometryAttribtueType. </p> <p> This should just be used a convenience method when it is known that the features do not have multiple geometries. </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/FeatureType.html#getDefaultGeometry()">getDefaultGeometry</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The attribute type of the default geometry, which will contain the position.</DL></DD></DL><HR><A NAME="getDirectoryName()"><!-- --></A><H3>getDirectoryName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getDirectoryName</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getFeatureClass()"><!-- --></A><H3>getFeatureClass</H3><PRE>public <A HREF="../../../../org/geotools/data/vpf/VPFFeatureClass.html" title="class in org.geotools.data.vpf">VPFFeatureClass</A> <B>getFeatureClass</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Returns the featureClass.</DL></DD></DL><HR><A NAME="getFileList()"><!-- --></A><H3>getFileList</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>getFileList</B>()</PRE><DL><DD>Returns a list of file objects<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>List</code> containing <code>VPFFile</code> objects</DL></DD></DL><HR><A NAME="getJoinList()"><!-- --></A><H3>getJoinList</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>getJoinList</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getNamespace()"><!-- --></A><H3>getNamespace</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URI.html" title="class or interface in java.net">URI</A> <B>getNamespace</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></B></DD><DD>Gets the global schema namespace. <p> This is often used to record the schema prefix (not the URI) required when writing out this Feature using GML. The supporting application will need to be able to start the GMLWriter off with the correct URI information so everything makes sense. </p> <p> The Registry interface provided by the data module provides an example of how to store associate FeatureType and namespace information. Please note that you may not have duplicate typeNames in the same Namespace. </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/FeatureType.html#getNamespace()">getNamespace</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A></CODE></DL></DD><DD><DL>

⌨️ 快捷键说明

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