001: /*
002: * The JTS Topology Suite is a collection of Java classes that
003: * implement the fundamental operations required to validate a given
004: * geo-spatial data set to a known topological specification.
005: *
006: * Copyright (C) 2001 Vivid Solutions
007: *
008: * This library is free software; you can redistribute it and/or
009: * modify it under the terms of the GNU Lesser General Public
010: * License as published by the Free Software Foundation; either
011: * version 2.1 of the License, or (at your option) any later version.
012: *
013: * This library is distributed in the hope that it will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
016: * Lesser General Public License for more details.
017: *
018: * You should have received a copy of the GNU Lesser General Public
019: * License along with this library; if not, write to the Free Software
020: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
021: *
022: * For more information, contact:
023: *
024: * Vivid Solutions
025: * Suite #1A
026: * 2328 Government Street
027: * Victoria BC V8T 5G5
028: * Canada
029: *
030: * (250)385-6040
031: * www.vividsolutions.com
032: */
033: /*
034: * Geotools2 - OpenSource mapping toolkit
035: * http://geotools.org
036: * (C) 2003, Geotools Project Managment Committee (PMC)
037: *
038: * This library is free software; you can redistribute it and/or
039: * modify it under the terms of the GNU Lesser General Public
040: * License as published by the Free Software Foundation;
041: * version 2.1 of the License.
042: *
043: * This library is distributed in the hope that it will be useful,
044: * but WITHOUT ANY WARRANTY; without even the implied warranty of
045: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
046: * Lesser General Public License for more details.
047: *
048: */
049: package com.vividsolutions.jts.io.oracle;
050:
051: /**
052: * Set of constants used to interact with MDSYS.GEOMETRY and JTS Geometries.
053: *
054: *
055: * @author David Zwiers, Vivid Solutions.
056: */
057: class Constants {
058:
059: /**
060: * Null SRID
061: */
062: public static final int SRID_NULL = -1;
063:
064: /**
065: *
066: * Extracted from the Oracle Documentation for SDO_ETYPE
067: *
068: * This list may need to be expanded in the future to handle additional Geometry Types.
069: *
070: * @author David Zwiers, Vivid Solutions.
071: * @author Jody Garnett, Refractions Research, Inc.
072: */
073: static final class SDO_ETYPE {
074:
075: /** <code>ETYPE</code> code representing Point */
076: public static final int POINT = 1;
077:
078: /** <code>ETYPE</code> code representing Line */
079: public static final int LINE = 2;
080:
081: /** <code>ETYPE</code> code representing Polygon */
082: public static final int POLYGON = 3;
083:
084: /** <code>ETYPE</code> code representing exterior counterclockwise polygon ring */
085: public static final int POLYGON_EXTERIOR = 1003;
086:
087: /** <code>ETYPE</code> code representing interior clockwise polygon ring */
088: public static final int POLYGON_INTERIOR = 2003;
089: }
090:
091: /**
092: * Extracted from the Oracle Documentation for SDO_GTYPE.
093: * This represents the last two digits in a GTYPE, where the first id dimension and the second if LRS
094: *
095: * This list may need to be expanded in the future to handle additional Geometry Types.
096: *
097: * @author David Zwiers, Vivid Solutions.
098: * @author Brent Owens, The Open Planning Project.
099: */
100: static final class SDO_GTEMPLATE {
101:
102: /** <code>TT</code> code representing Point */
103: public static final int POINT = 01;
104:
105: /** <code>TT</code> code representing Line (or Curve) */
106: public static final int LINE = 02;
107:
108: /** <code>TT</code> code representing Polygon */
109: public static final int POLYGON = 03;
110:
111: /** <code>TT</code> code representing Collection */
112: public static final int COLLECTION = 04;
113:
114: /** <code>TT</code> code representing Multpoint */
115: public static final int MULTIPOINT = 05;
116:
117: /** <code>TT</code> code representing Multiline (or Multicurve) */
118: public static final int MULTILINE = 06;
119:
120: /** <code>TT</code> code representing MULTIPOLYGON */
121: public static final int MULTIPOLYGON = 07;
122: }
123: }
|