no.uio.edd.utils.geoutils
Class GeoFeature

java.lang.Object
  extended by no.uio.edd.utils.geoutils.GeoFeature
Direct Known Subclasses:
GeoBoundingBox, GeoLine, GeoPlace, GeoPoint, GeoPolygon, GeoPolyline

public abstract class GeoFeature
extends java.lang.Object

Mother class of all geographical stuff.

Author:
oeide

Nested Class Summary
protected static class GeoFeature.possibleForms
           
 
Field Summary
protected  java.lang.String coordSyst
           
protected  int coordSystNumeric
           
static java.lang.String KOORD_NAME_GENERALSTABEN
           
static java.lang.String KOORD_NAME_REKTANGEL
           
static java.lang.String MAP_IDENT_GENERALSTABEN
           
static java.lang.String MAP_IDENT_REKTANGEL
           
protected  java.lang.String myId
           
static double OFFSET_CHRA
           
static double OFFSET_STHLM
           
 
Constructor Summary
GeoFeature()
           
 
Method Summary
abstract  java.lang.String asCoordList()
           
abstract  java.lang.String asGML()
          The GML fragment returned by this method should contain everything from the level of the specific geometry, that is, from gml:Point, gml:Polygon, etc.
static java.lang.String getGmlFooter()
           
static java.lang.String getGmlHeader()
           
abstract  GeoPoint getMidpoint()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coordSystNumeric

protected int coordSystNumeric

coordSyst

protected java.lang.String coordSyst

myId

protected java.lang.String myId

OFFSET_CHRA

public static final double OFFSET_CHRA
See Also:
Constant Field Values

KOORD_NAME_REKTANGEL

public static final java.lang.String KOORD_NAME_REKTANGEL
See Also:
Constant Field Values

MAP_IDENT_REKTANGEL

public static final java.lang.String MAP_IDENT_REKTANGEL
See Also:
Constant Field Values

OFFSET_STHLM

public static final double OFFSET_STHLM
See Also:
Constant Field Values

KOORD_NAME_GENERALSTABEN

public static final java.lang.String KOORD_NAME_GENERALSTABEN
See Also:
Constant Field Values

MAP_IDENT_GENERALSTABEN

public static final java.lang.String MAP_IDENT_GENERALSTABEN
See Also:
Constant Field Values
Constructor Detail

GeoFeature

public GeoFeature()
Method Detail

asGML

public abstract java.lang.String asGML()
The GML fragment returned by this method should contain everything from the level of the specific geometry, that is, from gml:Point, gml:Polygon, etc.

Returns:
An XML-GML fragment representing my vector geometry, if application; otherwise, return an empty string.

asCoordList

public abstract java.lang.String asCoordList()

getGmlHeader

public static java.lang.String getGmlHeader()

getGmlFooter

public static java.lang.String getGmlFooter()

getMidpoint

public abstract GeoPoint getMidpoint()