org.geotools.gml2.bindings
Class GMLUtil

java.lang.Object
  extended by org.geotools.gml2.bindings.GMLUtil

public class GMLUtil
extends java.lang.Object


Constructor Summary
GMLUtil()
           
 
Method Summary
static int getDimension(com.vividsolutions.jts.geom.CoordinateSequence seq)
          Determines the dimension of a coordinate sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLUtil

public GMLUtil()
Method Detail

getDimension

public static int getDimension(com.vividsolutions.jts.geom.CoordinateSequence seq)
Determines the dimension of a coordinate sequence. This is based off of the first coordinate in the sequence.

Parameters:
seq - The coordinate sequence in question.
Returns:
The best guess at a dimension, -1 if it can not be determined.


Copyright © 1996-2010 Geotools. All Rights Reserved.