📄 shapefiledatastore.html
字号:
<TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#schema">schema</A></B></CODE><BR> </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/net/URL.html" title="class or interface in java.net">URL</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#shpURL">shpURL</A></B></CODE><BR> </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/net/URL.html" title="class or interface in java.net">URL</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#shxURL">shxURL</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#useMemoryMappedBuffer">useMemoryMappedBuffer</A></B></CODE><BR> </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/net/URL.html" title="class or interface in java.net">URL</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#xmlURL">xmlURL</A></B></CODE><BR> </TD></TR></TABLE> <A NAME="fields_inherited_from_class_AbstractDataStore"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields 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#isWriteable">isWriteable</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#listenerManager">listenerManager</A>, <A HREF="../../../../org/geotools/data/AbstractDataStore.html#LOGGER">LOGGER</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#ShapefileDataStore(java.net.URL)">ShapefileDataStore</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URL.html" title="class or interface in java.net">URL</A> url)</CODE><BR> Creates a new instance of ShapefileDataStore.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#ShapefileDataStore(java.net.URL, java.net.URI)">ShapefileDataStore</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URL.html" title="class or interface in java.net">URL</A> url, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URI.html" title="class or interface in java.net">URI</A> namespace)</CODE><BR> this sets the datastore's namespace during construction (so the schema - FeatureType - will have the correct value) You can call this with namespace = null, but I suggest you give it an actual namespace.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#ShapefileDataStore(java.net.URL, java.net.URI, boolean)">ShapefileDataStore</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URL.html" title="class or interface in java.net">URL</A> url, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URI.html" title="class or interface in java.net">URI</A> namespace, boolean useMemoryMapped)</CODE><BR> this sets the datastore's namespace during construction (so the schema - FeatureType - will have the correct value) You can call this with namespace = null, but I suggest you give it an actual namespace.</TD></TR></TABLE> <!-- ========== 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>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#copyAndDelete(java.net.URL, long)">copyAndDelete</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URL.html" title="class or interface in java.net">URL</A> src, long temp)</CODE><BR> Copy the file at the given URL to the original</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="../../../../org/geotools/data/shapefile/dbf/DbaseFileHeader.html" title="class in org.geotools.data.shapefile.dbf">DbaseFileHeader</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#createDbaseHeader(org.geotools.feature.FeatureType)">createDbaseHeader</A></B>(<A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> featureType)</CODE><BR> Attempt to create a DbaseFileHeader for the FeatureType. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <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/shapefile/ShapefileDataStore.html#createFeatureReader(java.lang.String, org.geotools.data.shapefile.ShapefileDataStore.Reader, org.geotools.feature.FeatureType)">createFeatureReader</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/shapefile/ShapefileDataStore.Reader.html" title="class in org.geotools.data.shapefile">ShapefileDataStore.Reader</A> r, <A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> readerSchema)</CODE><BR> </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/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#createFeatureTypeName()">createFeatureTypeName</A></B>()</CODE><BR> Create the type name of the single FeatureType this DataStore represents.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <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/shapefile/ShapefileDataStore.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> Create a FeatureWriter for the given type name.</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/shapefile/ShapefileDataStore.html#createMetadata(java.lang.String)">createMetadata</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> Latch onto xmlURL if it is there, we may be able to get out of calculating the bounding box! </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/shapefile/ShapefileDataStore.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> Set the FeatureType of this DataStore. </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/shapefile/ShapefileDataStore.html#forceSchemaCRS(org.opengis.referencing.crs.CoordinateReferenceSystem)">forceSchemaCRS</A></B>(CoordinateReferenceSystem crs)</CODE><BR> This method is used to force the creation of a .prj file. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.Reader.html" title="class in org.geotools.data.shapefile">ShapefileDataStore.Reader</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.html#getAttributesReader(boolean)">getAttributesReader</A></B>(boolean readDbf)</CODE><BR> Returns the attribute reader, allowing for a pure shapefile reader, or a combined dbf/shp reader.</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/shapefile/ShapefileDataStore.html#getBounds()">getBounds</A></B>()</CODE><BR> Gets the bounding box of the file represented by this data store as a whole (that is, off all of the features in the shapefile)</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/shapefile/ShapefileDataStore.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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/data/shapefile/ShapefileDataStore.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>protected <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/shapefile/ShapefileDataStore.html#getCurrentTypeName()">getCurrentTypeName</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <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/shapefile/ShapefileDataStore.html#getFeatureReader()">getFeatureReader</A></B>()</CODE><BR> Singular version, which must be implemented to represent a Reader for the url being read.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <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/shapefile/ShapefileDataStore.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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -