Spatial DataBlade
JAVA API v8.21

com.ibm.spatial.geom
Class IfxSQLGeometryFactory

java.lang.Object
  extended by com.ibm.spatial.geom.GeometryFactory
      extended by com.ibm.spatial.geom.IfxSQLGeometryFactory

public class IfxSQLGeometryFactory
extends GeometryFactory

IfxSQLGeometryFactory.

Note: this class is used internally and may be changed in future implementations without notice. Applications should not use this class.


Method Summary
 Geometry createGeometry(java.lang.String type, Envelope envelope, double[] xy, double[] z, double[] m, int[] partOffsets, int[] subPartOffsets, double length, double area)
          Creates a geometry object from all the arguments.
 
Methods inherited from class com.ibm.spatial.geom.GeometryFactory
createEmptyGeometry, createGeometry, createGeometryCollection, createPoint, createPoint, createPoint, createPolygon, getInstance, getInstance, getSpatialReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createGeometry

public Geometry createGeometry(java.lang.String type,
                               Envelope envelope,
                               double[] xy,
                               double[] z,
                               double[] m,
                               int[] partOffsets,
                               int[] subPartOffsets,
                               double length,
                               double area)
                        throws java.lang.ClassNotFoundException
Creates a geometry object from all the arguments. In case of illegal or null envelope, length, area, the particular geometry construction may ignore or attempt to calculate these values.

In order to create an empty geometry, xy must be null or a zero length array. In this case, the geometry has a "z" subtype iff z is not null, and has a "m" subtype iff m is not null.

Parameters:
type - the type of the geometry to be created
envelope - the envelope of the geometry to be created
xy - array of xy coordinate pairs; if null or of length equal to zero, an empty geometry will be created
z - array of z coordinate pairs; if null, the geometry created will not have z coordinates
m - array of m values; if null, the geometry created will not have measure values
partOffsets - array holding positions in the xy coordinate array where geometry parts start. This argument is required for MultiLineString, Polygon, and MultiPolygon geometries.
subPartOffsets - array holding positions in the xy coordinate array where geometry subparts start. This argument is required for Polygon and MultiPolygon geometries.
length - the length of the geometry to be created
area - the area of the geometry to be created
Returns:
a geometry object
Throws:
java.lang.ClassNotFoundException - in case type is not an instantiable type from the package com.ibm.spatial.geom.

Spatial DataBlade
JAVA API v8.21


Licensed Materials - Property of IBM
Copyright IBM Corp. 2002, 2012 All Rights Reserved.