📄 memorydatastore.html
字号:
<BR> Configures MemoryDataStore with FeatureReader.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/geotools/data/FeatureWriter.html" title="interface in org.geotools.data">FeatureWriter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryDataStore.html#createFeatureWriter(java.lang.String, org.geotools.data.Transaction)">createFeatureWriter</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> typeName, <A HREF="../../../../org/geotools/data/Transaction.html" title="interface in org.geotools.data">Transaction</A> transaction)</CODE><BR> Provides FeatureWriter over the entire contents of <code>typeName</code>. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryDataStore.html#createSchema(org.geotools.feature.FeatureType)">createSchema</A></B>(<A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> featureType)</CODE><BR> Adds support for a new featureType to MemoryDataStore. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryDataStore.html#features(java.lang.String)">features</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> typeName)</CODE><BR> Access featureMap for typeName.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryDataStore.html#getBounds(org.geotools.data.Query)">getBounds</A></B>(<A HREF="../../../../org/geotools/data/Query.html" title="interface in org.geotools.data">Query</A> query)</CODE><BR> Computes the bounds of the features for the specified feature type that satisfy the query provided that there is a fast way to get that result. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryDataStore.html#getCount(org.geotools.data.Query)">getCount</A></B>(<A HREF="../../../../org/geotools/data/Query.html" title="interface in org.geotools.data">Query</A> query)</CODE><BR> Gets the number of the features that would be returned by this query for the specified feature type. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/geotools/data/FeatureReader.html" title="interface in org.geotools.data">FeatureReader</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/memory/MemoryDataStore.html#getFeatureReader(java.lang.String)">getFeatureReader</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> typeName)</CODE><BR> Provides FeatureReader over the entire contents of <code>typeName</code>. </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/memory/MemoryDataStore.html#getSchema(java.lang.String)">getSchema</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> typeName)</CODE><BR> FeatureType access by <code>typeName</code>.</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/memory/MemoryDataStore.html#getTypeNames()">getTypeNames</A></B>()</CODE><BR> List of available types provided by this DataStore.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_AbstractDataStore"><!-- --></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/data/AbstractDataStore.html" title="class in org.geotools.data">AbstractDataStore</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/geotools/data/AbstractDataStore.html#createLockingManager()">createLockingManager</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#createMetadata(java.lang.String)">createMetadata</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#getFeatureReader(org.geotools.data.Query, org.geotools.data.Transaction)">getFeatureReader</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#getFeatureReader(java.lang.String, org.geotools.data.Query)">getFeatureReader</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#getFeatureSource(java.lang.String)">getFeatureSource</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#getFeatureWriter(java.lang.String)">getFeatureWriter</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#getFeatureWriter(java.lang.String, org.geotools.filter.Filter, org.geotools.data.Transaction)">getFeatureWriter</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#getFeatureWriter(java.lang.String, org.geotools.data.Transaction)">getFeatureWriter</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#getFeatureWriterAppend(java.lang.String, org.geotools.data.Transaction)">getFeatureWriterAppend</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#getLockingManager()">getLockingManager</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#getUnsupportedFilter(java.lang.String, org.geotools.filter.Filter)">getUnsupportedFilter</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#getView(org.geotools.data.Query)">getView</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#updateSchema(java.lang.String, org.geotools.feature.FeatureType)">updateSchema</A></CODE></TD></TR></TABLE> <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#toString()" title="class or interface in java.lang">toString</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> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="memory"><!-- --></A><H3>memory</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> <B>memory</B></PRE><DL><DD>Memory holds Map of Feature by fid by typeName.<P><DL></DL></DL><HR><A NAME="schema"><!-- --></A><H3>schema</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> <B>schema</B></PRE><DL><DD>Schema holds FeatureType by typeName<P><DL></DL></DL><!-- ========= 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="MemoryDataStore()"><!-- --></A><H3>MemoryDataStore</H3><PRE>public <B>MemoryDataStore</B>()</PRE><DL></DL><HR><A NAME="MemoryDataStore(org.geotools.feature.FeatureCollection)"><!-- --></A><H3>MemoryDataStore</H3><PRE>public <B>MemoryDataStore</B>(<A HREF="../../../../org/geotools/feature/FeatureCollection.html" title="interface in org.geotools.feature">FeatureCollection</A> collection)</PRE><DL></DL><HR><A NAME="MemoryDataStore(org.geotools.feature.Feature[])"><!-- --></A><H3>MemoryDataStore</H3><PRE>public <B>MemoryDataStore</B>(<A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A>[] array)</PRE><DL></DL><HR><A NAME="MemoryDataStore(org.geotools.data.FeatureReader)"><!-- --></A><H3>MemoryDataStore</H3><PRE>public <B>MemoryDataStore</B>(<A HREF="../../../../org/geotools/data/FeatureReader.html" title="interface in org.geotools.data">FeatureReader</A> reader) 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></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="addFeatures(org.geotools.data.FeatureReader)"><!-- --></A><H3>addFeatures</H3><PRE>public void <B>addFeatures</B>(<A HREF="../../../../org/geotools/data/FeatureReader.html" title="interface in org.geotools.data">FeatureReader</A> reader) 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>Configures MemoryDataStore with FeatureReader.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - New contents to add<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If problems are encountered while adding<DD><CODE><A HREF="../../../../org/geotools/data/DataSourceException.html" title="class in org.geotools.data">DataSourceException</A></CODE> - See IOException</DL></DD></DL><HR><A NAME="addFeatures(java.util.Collection)"><!-- --></A><H3>addFeatures</H3><PRE>public void <B>addFeatures</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A> collection)</PRE><DL><DD>Configures MemoryDataStore with Collection. <p> You may use this to create a MemoryDataStore from a FeatureCollection. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>collection</CODE> - Collection of features to add<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - If provided collection is empty</DL></DD></DL><HR><A NAME="addFeatures(org.geotools.feature.Feature[])"><!-- --></A><H3>addFeatures</H3><PRE>public void <B>addFeatures</B>(<A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A>[] features)</PRE><DL><DD>Configures MemoryDataStore with feature array.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>features</CODE> - Array of features to add<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - If provided feature array is empty</DL></DD></DL><HR><A NAME="addFeature(org.geotools.feature.Feature)"><!-- --></A><H3>addFeature</H3><PRE>public void <B>addFeature</B>(<A HREF="../../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> feature)</PRE><DL><DD>Adds a single Feature to the correct typeName entry. <p> This is an internal opperation used for setting up MemoryDataStore - please use FeatureWriter for generatl use. </p> <p> This method is willing to create new FeatureTypes for MemoryDataStore. </p><P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -