featuretypes.html

来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 826 行 · 第 1/4 页

HTML
826 行
字号
<!-- ============ 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="getFieldLength(org.geotools.feature.AttributeType)"><!-- --></A><H3>getFieldLength</H3><PRE>public static int <B>getFieldLength</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;type)</PRE><DL><DD>This is a 'suitable replacement for extracting the expected field length of an attribute absed on its "facets" (ie Filter describing type restrictions); <p> This code is copied from the ShapefileDataStore where it was written (probably by dzwiers). Cholmes is providing documentation. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - the AttributeType<DT><B>Returns:</B><DD>an int indicating the max length of field in characters, or ANY_LENGTH</DL></DD></DL><HR><A NAME="transform(org.geotools.feature.FeatureType, org.opengis.referencing.crs.CoordinateReferenceSystem)"><!-- --></A><H3>transform</H3><PRE>public static <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>transform</B>(<A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;schema,                                    CoordinateReferenceSystem&nbsp;crs)                             throws <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></PRE><DL><DD>Forces the specified CRS on all geometry attributes<P><DD><DL><DT><B>Parameters:</B><DD><CODE>schema</CODE> - the original schema<DD><CODE>crs</CODE> - the forced crs<DT><B>Returns:</B><DD><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE></DL></DD></DL><HR><A NAME="transform(org.geotools.feature.FeatureType, org.opengis.referencing.crs.CoordinateReferenceSystem, boolean)"><!-- --></A><H3>transform</H3><PRE>public static <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>transform</B>(<A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;schema,                                    CoordinateReferenceSystem&nbsp;crs,                                    boolean&nbsp;forceOnlyMissing)                             throws <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></PRE><DL><DD>Forces the specified CRS on geometry attributes (all or some, depends on the parameters).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>schema</CODE> - the original schema<DD><CODE>crs</CODE> - the forced crs<DD><CODE>forceOnlyMissing</CODE> - if true, will force the specified crs only on the attributes that         do miss one<DT><B>Returns:</B><DD><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE></DL></DD></DL><HR><A NAME="transform(org.geotools.feature.Feature, org.geotools.feature.FeatureType, org.opengis.referencing.operation.MathTransform)"><!-- --></A><H3>transform</H3><PRE>public static <A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> <B>transform</B>(<A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A>&nbsp;feature,                                <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>&nbsp;schema,                                MathTransform&nbsp;transform)                         throws MismatchedDimensionException,                                TransformException,                                <A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></PRE><DL><DD>Applies transform to all geometry attribute.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>feature</CODE> - Feature to be transformed<DD><CODE>schema</CODE> - Schema for target transformation - transform( schema, crs )<DD><CODE>transform</CODE> - MathTransform used to transform coordinates - reproject( crs, crs )<DT><B>Returns:</B><DD>transformed Feature of type schema<DT><B>Throws:</B><DD><CODE>TransformException</CODE><DD><CODE>MismatchedDimensionException</CODE><DD><CODE><A HREF="../../../org/geotools/feature/IllegalAttributeException.html" title="class in org.geotools.feature">IllegalAttributeException</A></CODE></DL></DD></DL><HR><A NAME="newFeatureType(org.geotools.feature.AttributeType[], java.lang.String, java.net.URI, boolean, org.geotools.feature.FeatureType[])"><!-- --></A><H3>newFeatureType</H3><PRE>public static <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>newFeatureType</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>[]&nbsp;types,                                         <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;name,                                         <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;ns,                                         boolean&nbsp;isAbstract,                                         <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>[]&nbsp;superTypes)                                  throws <A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A>,                                         <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></PRE><DL><DD>The most specific way to create a new FeatureType.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>types</CODE> - The AttributeTypes to create the FeatureType with.<DD><CODE>name</CODE> - The typeName of the FeatureType. Required, may not be null.<DD><CODE>ns</CODE> - The namespace of the FeatureType. Optional, may be null.<DD><CODE>isAbstract</CODE> - True if this created type should be abstract.<DD><CODE>superTypes</CODE> - A Collection of types the FeatureType will inherit from. Currently, all        types inherit from feature in the opengis namespace.<DT><B>Returns:</B><DD>A new FeatureType created from the given arguments.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A></CODE> - If there are problems creating a factory.<DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE> - If the AttributeTypes provided are invalid in some way.</DL></DD></DL><HR><A NAME="newFeatureType(org.geotools.feature.AttributeType[], java.lang.String, java.net.URI, boolean, org.geotools.feature.FeatureType[], org.geotools.feature.AttributeType)"><!-- --></A><H3>newFeatureType</H3><PRE>public static <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>newFeatureType</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>[]&nbsp;types,                                         <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;name,                                         <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;ns,                                         boolean&nbsp;isAbstract,                                         <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>[]&nbsp;superTypes,                                         <A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>&nbsp;defaultGeometry)                                  throws <A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A>,                                         <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></PRE><DL><DD>The most specific way to create a new FeatureType.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>types</CODE> - The AttributeTypes to create the FeatureType with.<DD><CODE>name</CODE> - The typeName of the FeatureType. Required, may not be null.<DD><CODE>ns</CODE> - The namespace of the FeatureType. Optional, may be null.<DD><CODE>isAbstract</CODE> - True if this created type should be abstract.<DD><CODE>superTypes</CODE> - A Collection of types the FeatureType will inherit from. Currently, all        types inherit from feature in the opengis namespace.<DT><B>Returns:</B><DD>A new FeatureType created from the given arguments.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A></CODE> - If there are problems creating a factory.<DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE> - If the AttributeTypes provided are invalid in some way.</DL></DD></DL><HR><A NAME="newFeatureType(org.geotools.feature.AttributeType[], java.lang.String, java.net.URI, boolean, org.geotools.feature.FeatureType[], org.geotools.feature.GeometryAttributeType)"><!-- --></A><H3>newFeatureType</H3><PRE>public static <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>newFeatureType</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>[]&nbsp;types,                                         <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;name,                                         <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;ns,                                         boolean&nbsp;isAbstract,                                         <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A>[]&nbsp;superTypes,                                         <A HREF="../../../org/geotools/feature/GeometryAttributeType.html" title="interface in org.geotools.feature">GeometryAttributeType</A>&nbsp;defaultGeometry)                                  throws <A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A>,                                         <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></PRE><DL><DD>The most specific way to create a new FeatureType.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>types</CODE> - The AttributeTypes to create the FeatureType with.<DD><CODE>name</CODE> - The typeName of the FeatureType. Required, may not be null.<DD><CODE>ns</CODE> - The namespace of the FeatureType. Optional, may be null.<DD><CODE>isAbstract</CODE> - True if this created type should be abstract.<DD><CODE>superTypes</CODE> - A Collection of types the FeatureType will inherit from. Currently, all        types inherit from feature in the opengis namespace.<DT><B>Returns:</B><DD>A new FeatureType created from the given arguments.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A></CODE> - If there are problems creating a factory.<DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE> - If the AttributeTypes provided are invalid in some way.</DL></DD></DL><HR><A NAME="newFeatureType(org.geotools.feature.AttributeType[], java.lang.String, java.net.URI, boolean)"><!-- --></A><H3>newFeatureType</H3><PRE>public static <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>newFeatureType</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>[]&nbsp;types,                                         <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;name,                                         <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;ns,                                         boolean&nbsp;isAbstract)                                  throws <A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A>,                                         <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></PRE><DL><DD>Create a new FeatureType with the given AttributeTypes. A short cut for calling <code>newFeatureType(types,name,ns,isAbstract,null)</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>types</CODE> - The AttributeTypes to create the FeatureType with.<DD><CODE>name</CODE> - The typeName of the FeatureType. Required, may not be null.<DD><CODE>ns</CODE> - The namespace of the FeatureType. Optional, may be null.<DD><CODE>isAbstract</CODE> - True if this created type should be abstract.<DT><B>Returns:</B><DD>A new FeatureType created from the given arguments.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A></CODE> - If there are problems creating a factory.<DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE> - If the AttributeTypes provided are invalid in some way.</DL></DD></DL><HR><A NAME="newFeatureType(org.geotools.feature.AttributeType[], java.lang.String, java.net.URI)"><!-- --></A><H3>newFeatureType</H3><PRE>public static <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>newFeatureType</B>(<A HREF="../../../org/geotools/feature/AttributeType.html" title="interface in org.geotools.feature">AttributeType</A>[]&nbsp;types,                                         <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;name,                                         <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;ns)                                  throws <A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A>,                                         <A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></PRE><DL><DD>Create a new FeatureType with the given AttributeTypes. A short cut for calling <code>newFeatureType(types,name,ns,false,null)</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>types</CODE> - The AttributeTypes to create the FeatureType with.<DD><CODE>name</CODE> - The typeName of the FeatureType. Required, may not be null.<DD><CODE>ns</CODE> - The namespace of the FeatureType. Optional, may be null.<DT><B>Returns:</B><DD>A new FeatureType created from the given arguments.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/geotools/factory/FactoryConfigurationError.html" title="class in org.geotools.factory">FactoryConfigurationError</A></CODE> - If there are problems creating a factory.<DD><CODE><A HREF="../../../org/geotools/feature/SchemaException.html" title="class in org.geotools.feature">SchemaException</A></CODE> - If the AttributeTypes provided are invalid in some way.</DL></DD>

⌨️ 快捷键说明

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