abstractfeaturelist.html

来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 1,047 行 · 第 1/5 页

HTML
1,047 行
字号
 already set.  </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/geotools/feature/FeatureList.html" title="interface in org.geotools.feature">FeatureList</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/feature/collection/AbstractFeatureList.html#sort(org.geotools.filter.SortBy)">sort</A></B>(<A HREF="../../../../org/geotools/filter/SortBy.html" title="interface in org.geotools.filter">SortBy</A>&nbsp;order)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;collection.subCollection( myFilter ).sort( {"foo","bar"} ); collection.subCollection( myFilter ).sort( "bar" ).sort("foo")</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/geotools/feature/FeatureCollection.html" title="interface in org.geotools.feature">FeatureCollection</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/feature/collection/AbstractFeatureList.html#subCollection(org.geotools.filter.Filter)">subCollection</A></B>(<A HREF="../../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A>&nbsp;filter)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FeatureCollection "view" indicated by provided filter. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/geotools/feature/FeatureList.html" title="interface in org.geotools.feature">FeatureList</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/feature/collection/AbstractFeatureList.html#subList(org.geotools.filter.Filter)">subList</A></B>(<A HREF="../../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A>&nbsp;filter)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Similar to subCollection, explicitly constructs a ordered List. </TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_AbstractResourceList"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html" title="class in org.geotools.feature.collection">AbstractResourceList</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#add(int, java.lang.Object)">add</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#add(java.lang.Object)">add</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#addAll(int, java.util.Collection)">addAll</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#clear()">clear</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#closeIterator(java.util.Iterator)">closeIterator</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#get(int)">get</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#hashCode()">hashCode</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#indexOf(java.lang.Object)">indexOf</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#lastIndexOf(java.lang.Object)">lastIndexOf</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#listIterator()">listIterator</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#listIterator(int)">listIterator</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#openIterator()">openIterator</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#openIterator(int)">openIterator</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#remove(int)">remove</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#removeRange(int, int)">removeRange</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#set(int, java.lang.Object)">set</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceList.html#subList(int, int)">subList</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_AbstractResourceCollection"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html" title="class in org.geotools.feature.collection">AbstractResourceCollection</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#addAll(java.util.Collection)">addAll</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#close(java.util.Iterator)">close</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#contains(java.lang.Object)">contains</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#containsAll(java.util.Collection)">containsAll</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#isEmpty()">isEmpty</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#iterator()">iterator</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#purge()">purge</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#remove(java.lang.Object)">remove</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#removeAll(java.util.Collection)">removeAll</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#retainAll(java.util.Collection)">retainAll</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#size()">size</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#toArray()">toArray</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#toArray(java.lang.Object[])">toArray</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html#toString()">toString</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_List"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface <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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#add(int, java.lang.Object)" title="class or interface in java.util">add</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#add(java.lang.Object)" title="class or interface in java.util">add</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#addAll(java.util.Collection)" title="class or interface in java.util">addAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#addAll(int, java.util.Collection)" title="class or interface in java.util">addAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#clear()" title="class or interface in java.util">clear</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#contains(java.lang.Object)" title="class or interface in java.util">contains</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#containsAll(java.util.Collection)" title="class or interface in java.util">containsAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#equals(java.lang.Object)" title="class or interface in java.util">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#get(int)" title="class or interface in java.util">get</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#hashCode()" title="class or interface in java.util">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#indexOf(java.lang.Object)" title="class or interface in java.util">indexOf</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#isEmpty()" title="class or interface in java.util">isEmpty</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#iterator()" title="class or interface in java.util">iterator</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#lastIndexOf(java.lang.Object)" title="class or interface in java.util">lastIndexOf</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#listIterator()" title="class or interface in java.util">listIterator</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#listIterator(int)" title="class or interface in java.util">listIterator</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#remove(int)" title="class or interface in java.util">remove</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#remove(java.lang.Object)" title="class or interface in java.util">remove</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#removeAll(java.util.Collection)" title="class or interface in java.util">removeAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#retainAll(java.util.Collection)" title="class or interface in java.util">retainAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#set(int, java.lang.Object)" title="class or interface in java.util">set</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#size()" title="class or interface in java.util">size</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#subList(int, int)" title="class or interface in java.util">subList</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#toArray()" title="class or interface in java.util">toArray</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#toArray(java.lang.Object[])" title="class or interface in java.util">toArray</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_FeatureCollection"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface <A HREF="../../../../org/geotools/feature/FeatureCollection.html" title="interface in org.geotools.feature">FeatureCollection</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/feature/FeatureCollection.html#accepts(org.geotools.feature.visitor.FeatureVisitor, org.geotools.util.ProgressListener)">accepts</A>, <A HREF="../../../../org/geotools/feature/FeatureCollection.html#close(java.util.Iterator)">close</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_ResourceCollection"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface <A HREF="../../../../org/geotools/data/collection/ResourceCollection.html" title="interface in org.geotools.data.collection">ResourceCollection</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/data/collection/ResourceCollection.html#iterator()">iterator</A>, <A HREF="../../../../org/geotools/data/collection/ResourceCollection.html#purge()">purge</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="AbstractFeatureList(org.geotools.feature.collection.FeatureState)"><!-- --></A><H3>AbstractFeatureList</H3><PRE>protected <B>AbstractFeatureList</B>(<A HREF="../../../../org/geotools/feature/collection/FeatureState.html" title="class in org.geotools.feature.collection">FeatureState</A>&nbsp;state)</PRE><DL><DD>Feature methods will be delegated to provided state<P></DL><HR><A NAME="AbstractFeatureList(org.geotools.feature.FeatureCollection)"><!-- --></A><H3>AbstractFeatureList</H3><PRE>protected <B>AbstractFeatureList</B>(<A HREF="../../../../org/geotools/feature/FeatureCollection.html" title="interface in org.geotools.feature">FeatureCollection</A>&nbsp;collection)</PRE><DL><DD>Feature methods will be delegated to provided state<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getParent()"><!-- --></A><H3>getParent</H3><PRE>public <A HREF="../../../../org/geotools/feature/FeatureCollection.html" title="interface in org.geotools.feature">FeatureCollection</A> <B>getParent</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A></CODE></B></DD><DD>Gets the feature collection this feature is stored in.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/Feature.html#getParent()">getParent</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The collection that is the parent of this feature.</DL></DD></DL><HR><A NAME="setParent(org.geotools.feature.FeatureCollection)"><!-- --></A><H3>setParent</H3><PRE>public void <B>setParent</B>(<A HREF="../../../../org/geotools/feature/FeatureCollection.html" title="interface in org.geotools.feature">FeatureCollection</A>&nbsp;collection)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A></CODE></B></DD><DD>Sets the parent collection this feature is stored in, if it is not already set.  If it is set then this method does nothing.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/Feature.html#setParent(org.geotools.feature.FeatureCollection)">setParent</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>collection</CODE> - the collection to be set as parent.</DL></DD></DL><HR><A NAME="getFeatureType()"><!-- --></A><H3>getFeatureType</H3><PRE>public <A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>getFeatureType</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/FeatureCollection.html" title="interface in org.geotools.feature">FeatureCollection</A></CODE></B></DD><DD>Gets a reference to the type of this feature collection. <p> There are several limitations on the use of FeatureType with respect to a FeatureCollection. </p> <p> GML 3.x: all FeatureCollections decend from gml:AbstractFeatureCollectionType: <ul> <li>featureMember 0..* allows _Feature or xlink:ref <li>featureMembers 0..1 contents treated as _Feature </ul> The contents defined in this manner is returned the collection iterator() method. </p> <p> GML 3.x: gml:AbstractFeatureCollectionType decends from gml:BoundedFeatureType: <ul> <li>metaDataProperty 0..* <li>description 0..1 <li>name 0..* <li>boundedBy 1..1 (required) <li>location 0..1 </ul> The value of the boundedBy attribute should be derived from the contents of the collection. </p> <h3>Implementation Notes</h3> <p> There is a difference between getFeatureType() and getSchema(), getSchema is named for historical reasons and reprensets the LCD FeatureType that best represents the contents of this collection. <ul> <li>The degenerate case returns the "_Feature" FeatureType, where the onlything known is that the contents are Features. <li>For a collection backed by a shapefiles (or database tables) the     FeatureType returned by getSchema() will complete describe each and every child in the collection. <li>For mixed content FeatureCollections you will need to check the FeatureType     of each Feature as it is retrived from the collection </ul> </p>

⌨️ 快捷键说明

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