com.moximedia.aims
Class SpatialDirect

java.lang.Object
  extended bycom.moximedia.aims.SpatialDirect
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class SpatialDirect
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Class to support properties and methods in support of Spatial Direct feature extraction.

Author:
jdc
See Also:
Serialized Form

Constructor Summary
SpatialDirect()
          Creates a new instance of SpatialDirect
 
Method Summary
 void addCoordinateType(java.lang.String name, java.lang.String value)
          Adds an export coordinate type.
 void addFormat(java.lang.String name, java.lang.String value)
          Adds an export format.
 java.lang.Object clone()
           
 int getCoordinateTypeCount()
          Returns the number of coordinate types.
 java.lang.String getCoordinateTypeName(int index)
          Returns the coordinate type name at the specified index.
 java.lang.String getCoordinateTypeValue(int index)
          Returns the coordinate type value at the specified index.
 java.lang.String getExtractRequestUrl(AimsMap map, AimsLayers layers, AimsEnvelope extent, java.lang.String format, java.lang.String coordsys, boolean clip)
          Gets the extract request URL for the specified parameters.
 int getFormatTypeCount()
          Returns the number of format types.
 java.lang.String getFormatTypeName(int index)
          Returns the format type name at the specified index.
 java.lang.String getFormatTypeValue(int index)
          Returns the format type value at the specified index.
 java.lang.String getServletUrl()
          Gets the URL for the SpatialDirect servlet.
 java.lang.String getTemplatePrefix()
          Gets the template prefix for the installation.
 void setAxlAttribute(java.lang.String tag, java.lang.String name, java.lang.String value)
          Sets one of the attributes of this object using a string value.
 void setServletUrl(java.lang.String href)
          Sets the URL for the SpatialDirect servlet.
 void setTemplatePrefix(java.lang.String prefix)
          Sets the template prefix for the installation.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialDirect

public SpatialDirect()
Creates a new instance of SpatialDirect

Method Detail

clone

public java.lang.Object clone()

setAxlAttribute

public void setAxlAttribute(java.lang.String tag,
                            java.lang.String name,
                            java.lang.String value)
Sets one of the attributes of this object using a string value. This method should only be called from the SAX event handler.

Parameters:
tag - The AXL element tag containing this attribute.
name - The AXL attribute name.
value - The AXL attribute value.

addCoordinateType

public void addCoordinateType(java.lang.String name,
                              java.lang.String value)
Adds an export coordinate type.

Parameters:
name - The coordinate type name.
value - The coordinate type value.

getCoordinateTypeCount

public int getCoordinateTypeCount()
Returns the number of coordinate types.

Returns:
The number of coordinate types.

getCoordinateTypeName

public java.lang.String getCoordinateTypeName(int index)
Returns the coordinate type name at the specified index.

Returns:
The coordinate type name at the specified index, or null if there is no coordinate type at that index.

getCoordinateTypeValue

public java.lang.String getCoordinateTypeValue(int index)
Returns the coordinate type value at the specified index.

Returns:
The coordinate type value at the specified index, or null if there is no coordinate type at that index.

addFormat

public void addFormat(java.lang.String name,
                      java.lang.String value)
Adds an export format.

Parameters:
name - The format name.
value - The format value.

getFormatTypeCount

public int getFormatTypeCount()
Returns the number of format types.

Returns:
The number of format types.

getFormatTypeName

public java.lang.String getFormatTypeName(int index)
Returns the format type name at the specified index.

Returns:
The format type name at the specified index, or null if there is no format type at that index.

getFormatTypeValue

public java.lang.String getFormatTypeValue(int index)
Returns the format type value at the specified index.

Returns:
The format type value at the specified index, or null if there is no format type at that index.

getTemplatePrefix

public java.lang.String getTemplatePrefix()
Gets the template prefix for the installation.

Returns:
The template prefix for the installation.

setTemplatePrefix

public void setTemplatePrefix(java.lang.String prefix)
Sets the template prefix for the installation.

Parameters:
prefix - The template prefix for the installation.

getServletUrl

public java.lang.String getServletUrl()
Gets the URL for the SpatialDirect servlet.

Returns:
The URL of the SpatialDirect servlet.

setServletUrl

public void setServletUrl(java.lang.String href)
Sets the URL for the SpatialDirect servlet.

Parameters:
href - The complete URL to the SpatialDirect servlet.

getExtractRequestUrl

public java.lang.String getExtractRequestUrl(AimsMap map,
                                             AimsLayers layers,
                                             AimsEnvelope extent,
                                             java.lang.String format,
                                             java.lang.String coordsys,
                                             boolean clip)
Gets the extract request URL for the specified parameters.

Parameters:
map - The map object containing the layers to extract.
layers - The layers to extract.
extent - The limiting extent.
format -
coordsys -
clip - True if the data should be clipped by the extent, otherwise false.


Internet Mapping Framework for ArcIMS Java Object Model API (v5.0.004)
Copyright © 2005 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.