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

📄 memoryfeaturecollection.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryFeatureCollection.html#MemoryFeatureCollection(org.geotools.feature.FeatureType)">MemoryFeatureCollection</A></B>(<A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;schema)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<!-- ========== 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>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryFeatureCollection.html#add(java.lang.Object)">add</A></B>(<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;o)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Implement to support modification.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryFeatureCollection.html#closeIterator(java.util.Iterator)">closeIterator</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A>&nbsp;close)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Please override to cleanup after your own iterators, and any used resources. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryFeatureCollection.html#getFeatureMember(java.lang.String)">getFeatureMember</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>&nbsp;id)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Access Feature content by feature id.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryFeatureCollection.html#openIterator()">openIterator</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open a resource based Iterator, we will call close( iterator ). </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryFeatureCollection.html#removeFeatureMember(java.lang.String)">removeFeatureMember</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>&nbsp;id)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Optional Method</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryFeatureCollection.html#size()">size</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of elements in this collection.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_AbstractFeatureCollection"><!-- --></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/AbstractFeatureCollection.html" title="class in org.geotools.feature.collection">AbstractFeatureCollection</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#accepts(org.geotools.feature.visitor.FeatureVisitor, org.geotools.util.ProgressListener)">accepts</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#addListener(org.geotools.feature.CollectionListener)">addListener</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#close(org.geotools.feature.FeatureIterator)">close</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#closeIterator(org.geotools.feature.FeatureIterator)">closeIterator</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#collection()">collection</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#features()">features</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#getAttribute(int)">getAttribute</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#getAttribute(java.lang.String)">getAttribute</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#getAttributes(java.lang.Object[])">getAttributes</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#getBounds()">getBounds</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#getCount()">getCount</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#getDefaultGeometry()">getDefaultGeometry</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#getFeatureType()">getFeatureType</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#getID()">getID</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#getNumberOfAttributes()">getNumberOfAttributes</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#getParent()">getParent</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#getSchema()">getSchema</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#purge()">purge</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#reader()">reader</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#removeListener(org.geotools.feature.CollectionListener)">removeListener</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#setAttribute(int, java.lang.Object)">setAttribute</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#setAttribute(java.lang.String, java.lang.Object)">setAttribute</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#setDefaultGeometry(com.vividsolutions.jts.geom.Geometry)">setDefaultGeometry</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#setParent(org.geotools.feature.FeatureCollection)">setParent</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#sort(org.geotools.filter.SortBy)">sort</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#subCollection(org.geotools.filter.Filter)">subCollection</A>, <A HREF="../../../../org/geotools/feature/collection/AbstractFeatureCollection.html#subList(org.geotools.filter.Filter)">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#clear()">clear</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#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#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#equals(java.lang.Object)" title="class or interface in java.lang">equals</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#hashCode()" title="class or interface in java.lang">hashCode</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_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#addListener(org.geotools.feature.CollectionListener)">addListener</A>, <A HREF="../../../../org/geotools/feature/FeatureCollection.html#close(org.geotools.feature.FeatureIterator)">close</A>, <A HREF="../../../../org/geotools/feature/FeatureCollection.html#close(java.util.Iterator)">close</A>, <A HREF="../../../../org/geotools/feature/FeatureCollection.html#features()">features</A>, <A HREF="../../../../org/geotools/feature/FeatureCollection.html#getFeatureType()">getFeatureType</A>, <A HREF="../../../../org/geotools/feature/FeatureCollection.html#getSchema()">getSchema</A>, <A HREF="../../../../org/geotools/feature/FeatureCollection.html#removeListener(org.geotools.feature.CollectionListener)">removeListener</A>, <A HREF="../../../../org/geotools/feature/FeatureCollection.html#sort(org.geotools.filter.SortBy)">sort</A>, <A HREF="../../../../org/geotools/feature/FeatureCollection.html#subCollection(org.geotools.filter.Filter)">subCollection</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;<A NAME="methods_inherited_from_class_Collection"><!-- --></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/Collection.html" title="class or interface in java.util">Collection</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.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/Collection.html#clear()" title="class or interface in java.util">clear</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.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/Collection.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/Collection.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/Collection.html#hashCode()" title="class or interface in java.util">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html#isEmpty()" title="class or interface in java.util">isEmpty</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.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/Collection.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/Collection.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/Collection.html#toArray()" title="class or interface in java.util">toArray</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.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_FeatureResults"><!-- --></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/FeatureResults.html" title="interface in org.geotools.data">FeatureResults</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/data/FeatureResults.html#collection()">collection</A>, <A HREF="../../../../org/geotools/data/FeatureResults.html#getBounds()">getBounds</A>, <A HREF="../../../../org/geotools/data/FeatureResults.html#getCount()">getCount</A>, <A HREF="../../../../org/geotools/data/FeatureResults.html#reader()">reader</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_Feature"><!-- --></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/Feature.html" title="interface in org.geotools.feature">Feature</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/feature/Feature.html#getAttribute(int)">getAttribute</A>, <A HREF="../../../../org/geotools/feature/Feature.html#getAttribute(java.lang.String)">getAttribute</A>, <A HREF="../../../../org/geotools/feature/Feature.html#getAttributes(java.lang.Object[])">getAttributes</A>, <A HREF="../../../../org/geotools/feature/Feature.html#getBounds()">getBounds</A>, <A HREF="../../../../org/geotools/feature/Feature.html#getDefaultGeometry()">getDefaultGeometry</A>, <A HREF="../../../../org/geotools/feature/Feature.html#getID()">getID</A>, <A HREF="../../../../org/geotools/feature/Feature.html#getNumberOfAttributes()">getNumberOfAttributes</A>, <A HREF="../../../../org/geotools/feature/Feature.html#getParent()">getParent</A>, <A HREF="../../../../org/geotools/feature/Feature.html#setAttribute(int, java.lang.Object)">setAttribute</A>, <A HREF="../../../../org/geotools/feature/Feature.html#setAttribute(java.lang.String, java.lang.Object)">setAttribute</A>, <A HREF="../../../../org/geotools/feature/Feature.html#setDefaultGeometry(com.vividsolutions.jts.geom.Geometry)">setDefaultGeometry</A>, <A HREF="../../../../org/geotools/feature/Feature.html#setParent(org.geotools.feature.FeatureCollection)">setParent</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="MemoryFeatureCollection(org.geotools.feature.FeatureType)"><!-- --></A><H3>MemoryFeatureCollection</H3><PRE>public <B>MemoryFeatureCollection</B>(<A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;schema)</PRE><DL></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="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/geotools/feature/collection/AbstractResourceCollection.html" title="class in org.geotools.feature.collection">AbstractResourceCollection</A></CODE></B></DD>

⌨️ 快捷键说明

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