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

📄 postgisfeaturestore.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</DL><HR><A NAME="geometryFactory"><!-- --></A><H3>geometryFactory</H3><PRE>protected static <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/GeometryFactory.html" title="class or interface in com.vividsolutions.jts.geom">GeometryFactory</A> <B>geometryFactory</B></PRE><DL><DD>Factory for producing geometries (from JTS).<P><DL></DL></DL><HR><A NAME="geometryReader"><!-- --></A><H3>geometryReader</H3><PRE>protected static <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/io/WKTReader.html" title="class or interface in com.vividsolutions.jts.io">WKTReader</A> <B>geometryReader</B></PRE><DL><DD>Well Known Text reader (from JTS).<P><DL></DL></DL><HR><A NAME="CONN_ERROR"><!-- --></A><H3>CONN_ERROR</H3><PRE>protected static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CONN_ERROR</B></PRE><DL><DD>Error message prefix for sql connection errors<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.geotools.data.postgis.PostgisFeatureStore.CONN_ERROR">Constant Field Values</A></DL></DL><HR><A NAME="sqlBuilder"><!-- --></A><H3>sqlBuilder</H3><PRE>protected <A HREF="../../../../org/geotools/data/postgis/PostgisSQLBuilder.html" title="class in org.geotools.data.postgis">PostgisSQLBuilder</A> <B>sqlBuilder</B></PRE><DL><DD>To create the sql where statement<P><DL></DL></DL><HR><A NAME="encoder"><!-- --></A><H3>encoder</H3><PRE>protected <A HREF="../../../../org/geotools/filter/SQLEncoderPostgis.html" title="class in org.geotools.filter">SQLEncoderPostgis</A> <B>encoder</B></PRE><DL><DL></DL></DL><HR><A NAME="tableName"><!-- --></A><H3>tableName</H3><PRE>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> <B>tableName</B></PRE><DL><DL></DL></DL><HR><A NAME="fidMapper"><!-- --></A><H3>fidMapper</H3><PRE>protected <A HREF="../../../../org/geotools/data/jdbc/fidmapper/FIDMapper.html" title="interface in org.geotools.data.jdbc.fidmapper">FIDMapper</A> <B>fidMapper</B></PRE><DL><DD>the name of the column to use for the featureId<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="PostgisFeatureStore(org.geotools.data.postgis.PostgisDataStore, org.geotools.feature.FeatureType)"><!-- --></A><H3>PostgisFeatureStore</H3><PRE>public <B>PostgisFeatureStore</B>(<A HREF="../../../../org/geotools/data/postgis/PostgisDataStore.html" title="class in org.geotools.data.postgis">PostgisDataStore</A>&nbsp;postgisDataStore,                           <A HREF="../../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;featureType)                    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="getSRID(java.lang.String)"><!-- --></A><H3>getSRID</H3><PRE>protected int <B>getSRID</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;geomName)               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><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></DL></DD></DL><HR><A NAME="removeFeatures(org.geotools.filter.Filter)"><!-- --></A><H3>removeFeatures</H3><PRE>public void <B>removeFeatures</B>(<A HREF="../../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A>&nbsp;filter)                    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>Removes the features specified by the passed filter from the PostGIS database.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/FeatureStore.html#removeFeatures(org.geotools.filter.Filter)">removeFeatures</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/data/FeatureStore.html" title="interface in org.geotools.data">FeatureStore</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureStore.html#removeFeatures(org.geotools.filter.Filter)">removeFeatures</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureStore.html" title="class in org.geotools.data.jdbc">JDBCFeatureStore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filter</CODE> - An OpenGIS filter; specifies which features to remove.<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 anything goes wrong or if deleting is not         supported.<DD><CODE><A HREF="../../../../org/geotools/data/DataSourceException.html" title="class in org.geotools.data">DataSourceException</A></CODE> - DOCUMENT ME!<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/data/FeatureStore.html#modifyFeatures(org.geotools.feature.AttributeType, java.lang.Object, org.geotools.filter.Filter)"><CODE>FeatureStore.modifyFeatures(org.geotools.feature.AttributeType,      java.lang.Object, org.geotools.filter.Filter)</CODE></A></DL></DD></DL><HR><A NAME="modifyFeatures(org.geotools.feature.AttributeType[], java.lang.Object[], org.geotools.filter.Filter)"><!-- --></A><H3>modifyFeatures</H3><PRE>public void <B>modifyFeatures</B>(<A HREF="../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>[]&nbsp;type,                           <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;value,                           <A HREF="../../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A>&nbsp;filter)                    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>Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/FeatureStore.html#modifyFeatures(org.geotools.feature.AttributeType[], java.lang.Object[], org.geotools.filter.Filter)">modifyFeatures</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/data/FeatureStore.html" title="interface in org.geotools.data">FeatureStore</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureStore.html#modifyFeatures(org.geotools.feature.AttributeType[], java.lang.Object[], org.geotools.filter.Filter)">modifyFeatures</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureStore.html" title="class in org.geotools.data.jdbc">JDBCFeatureStore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - The attributes to modify.<DD><CODE>value</CODE> - The values to put in the attribute types.<DD><CODE>filter</CODE> - An OGC filter to note which attributes to modify.<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 modificaton is not supported, if the attribute         and object arrays are not eqaul length, or if the object types         do not match the attribute types.<DD><CODE><A HREF="../../../../org/geotools/data/DataSourceException.html" title="class in org.geotools.data">DataSourceException</A></CODE> - DOCUMENT ME!<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/data/FeatureStore.html#modifyFeatures(org.geotools.feature.AttributeType, java.lang.Object, org.geotools.filter.Filter)"><CODE>FeatureStore.modifyFeatures(org.geotools.feature.AttributeType,      java.lang.Object, org.geotools.filter.Filter)</CODE></A><DT><B>'TODO:'</B></DT>  <DD>REVISIT: validate values with types.  Database does this a bit       now, but should be more fully implemented., REVISIT: do some nice prepared statement stuff like oracle.</DD></DL></DD></DL><HR><A NAME="modifyFeatures(org.geotools.feature.AttributeType, java.lang.Object, org.geotools.filter.Filter)"><!-- --></A><H3>modifyFeatures</H3><PRE>public void <B>modifyFeatures</B>(<A HREF="../../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;type,                           <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;value,                           <A HREF="../../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A>&nbsp;filter)                    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>Modifies the passed attribute types with the passed objects in all features that correspond to the passed OGS filter.  A convenience method for single attribute modifications.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/data/FeatureStore.html#modifyFeatures(org.geotools.feature.AttributeType, java.lang.Object, org.geotools.filter.Filter)">modifyFeatures</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/data/FeatureStore.html" title="interface in org.geotools.data">FeatureStore</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureStore.html#modifyFeatures(org.geotools.feature.AttributeType, java.lang.Object, org.geotools.filter.Filter)">modifyFeatures</A></CODE> in class <CODE><A HREF="../../../../org/geotools/data/jdbc/JDBCFeatureStore.html" title="class in org.geotools.data.jdbc">JDBCFeatureStore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - The attributes to modify.<DD><CODE>value</CODE> - The values to put in the attribute types.<DD><CODE>filter</CODE> - An OGC filter to note which attributes to modify.<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 modificaton is not supported, if the object type         do not match the attribute type.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/data/FeatureStore.html#modifyFeatures(org.geotools.feature.AttributeType, java.lang.Object, org.geotools.filter.Filter)"><CODE>FeatureStore.modifyFeatures(org.geotools.feature.AttributeType,      java.lang.Object, org.geotools.filter.Filter)</CODE></A></DL></DD></DL><HR><A NAME="getPostgisDataStore()"><!-- --></A><H3>getPostgisDataStore</H3><PRE>protected <A HREF="../../../../org/geotools/data/postgis/PostgisDataStore.html" title="class in org.geotools.data.postgis">PostgisDataStore</A> <B>getPostgisDataStore</B>()</PRE><DL><DD>Performs the setFeautres operation by removing all and then adding the full collection.  This is not efficient, the add, modify and  remove operations should be used instead, this is just to follow the interface.<P>

⌨️ 快捷键说明

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