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

📄 shapefiledatastore.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DL></DL></DL><HR><A NAME="readWriteLock"><!-- --></A><H3>readWriteLock</H3><PRE>protected <A HREF="../../../../org/geotools/data/shapefile/Lock.html" title="class in org.geotools.data.shapefile">Lock</A> <B>readWriteLock</B></PRE><DL><DL></DL></DL><HR><A NAME="namespace"><!-- --></A><H3>namespace</H3><PRE>protected <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>namespace</B></PRE><DL><DL></DL></DL><HR><A NAME="schema"><!-- --></A><H3>schema</H3><PRE>protected <A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>schema</B></PRE><DL><DL></DL></DL><HR><A NAME="useMemoryMappedBuffer"><!-- --></A><H3>useMemoryMappedBuffer</H3><PRE>protected boolean <B>useMemoryMappedBuffer</B></PRE><DL><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="ShapefileDataStore(java.net.URL)"><!-- --></A><H3>ShapefileDataStore</H3><PRE>public <B>ShapefileDataStore</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>&nbsp;url)                   throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/MalformedURLException.html" title="class or interface in java.net">MalformedURLException</A></PRE><DL><DD>Creates a new instance of ShapefileDataStore.<P><DT><B>Parameters:</B><DD><CODE>url</CODE> - The URL of the shp file to use for this DataSource.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - DOCUMENT ME!<DD><CODE>.</CODE> - If computation of related URLs (dbf,shx) fails.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/MalformedURLException.html" title="class or interface in java.net">MalformedURLException</A></CODE></DL><HR><A NAME="ShapefileDataStore(java.net.URL, java.net.URI)"><!-- --></A><H3>ShapefileDataStore</H3><PRE>public <B>ShapefileDataStore</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>&nbsp;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>&nbsp;namespace)                   throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/MalformedURLException.html" title="class or interface in java.net">MalformedURLException</A></PRE><DL><DD>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.<P><DT><B>Parameters:</B><DD><CODE>url</CODE> - <DD><CODE>namespace</CODE> - </DL><HR><A NAME="ShapefileDataStore(java.net.URL, java.net.URI, boolean)"><!-- --></A><H3>ShapefileDataStore</H3><PRE>public <B>ShapefileDataStore</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>&nbsp;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>&nbsp;namespace,                          boolean&nbsp;useMemoryMapped)                   throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/MalformedURLException.html" title="class or interface in java.net">MalformedURLException</A></PRE><DL><DD>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.<P><DT><B>Parameters:</B><DD><CODE>url</CODE> - <DD><CODE>namespace</CODE> - <DD><CODE>useMemoryMapped</CODE> - </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="createMetadata(java.lang.String)"><!-- --></A><H3>createMetadata</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>createMetadata</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;typeName)</PRE><DL><DD>Latch onto xmlURL if it is there, we may be able to get out of calculating the bounding box!  <p> This method is called by the createTypeEntry anonymous inner class DefaultTypeEntry. </p><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/AbstractDataStore.html#createMetadata(java.lang.String)">createMetadata</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/AbstractDataStore.html" title="class in org.geotools.data">AbstractDataStore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>typeName</CODE> - DOCUMENT ME!<DT><B>Returns:</B><DD>Map with xmlURL parsed, or an EMPTY_MAP.</DL></DD></DL><HR><A NAME="isLocal()"><!-- --></A><H3>isLocal</H3><PRE>public boolean <B>isLocal</B>()</PRE><DL><DD>Determine if the location of this shapefile is local or remote.<P><DD><DL><DT><B>Returns:</B><DD>true if local, false if remote</DL></DD></DL><HR><A NAME="getReadChannel(java.net.URL)"><!-- --></A><H3>getReadChannel</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/nio/channels/ReadableByteChannel.html" title="class or interface in java.nio.channels">ReadableByteChannel</A> <B>getReadChannel</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>&nbsp;url)                                      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>Obtain a ReadableByteChannel from the given URL. If the url protocol is file, a FileChannel will be returned. Otherwise a generic channel will be obtained from the urls input stream.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - DOCUMENT ME!<DT><B>Returns:</B><DD>DOCUMENT ME!<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> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="getWriteChannel(java.net.URL)"><!-- --></A><H3>getWriteChannel</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/nio/channels/WritableByteChannel.html" title="class or interface in java.nio.channels">WritableByteChannel</A> <B>getWriteChannel</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>&nbsp;url)                                       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>Obtain a WritableByteChannel from the given URL. If the url protocol is file, a FileChannel will be returned. Currently, this method will return a generic channel for remote urls, however both shape and dbf writing can only occur with a local FileChannel channel.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - DOCUMENT ME!<DT><B>Returns:</B><DD>DOCUMENT ME!<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> - DOCUMENT ME!</DL></DD></DL><HR><A NAME="getFeatureReader(java.lang.String)"><!-- --></A><H3>getFeatureReader</H3><PRE>protected <A HREF="../../../../org/geotools/data/FeatureReader.html" title="interface in org.geotools.data">FeatureReader</A> <B>getFeatureReader</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;typeName)                                  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>Create a FeatureReader for the provided type name.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/AbstractDataStore.html#getFeatureReader(java.lang.String)">getFeatureReader</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/AbstractDataStore.html" title="class in org.geotools.data">AbstractDataStore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>typeName</CODE> - The name of the FeatureType to create a reader for.<DT><B>Returns:</B><DD>A new FeatureReader.<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 an error occurs during creation</DL></DD></DL><HR><A NAME="getFeatureReader()"><!-- --></A><H3>getFeatureReader</H3><PRE>protected <A HREF="../../../../org/geotools/data/FeatureReader.html" title="interface in org.geotools.data">FeatureReader</A> <B>getFeatureReader</B>()                                  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><B>Description copied from class: <CODE><A HREF="../../../../org/geotools/data/AbstractFileDataStore.html" title="class in org.geotools.data">AbstractFileDataStore</A></CODE></B></DD><DD>Singular version, which must be implemented to represent a Reader  for the url being read.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/AbstractFileDataStore.html#getFeatureReader()">getFeatureReader</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/AbstractFileDataStore.html" title="class in org.geotools.data">AbstractFileDataStore</A></CODE></DL></DD><DD><DL><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><DT><B>See Also:</B><DD><CODE>org.geotools.data.DataStore#getFeatureReader(java.lang.String)</CODE></DL></DD></DL><HR>

⌨️ 快捷键说明

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