|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.map.Map
public class Map
Represents the map to be displayed. This object is the entry point into the ArcIMS Java Connector object model.
Field Summary | |
---|---|
String |
ArcIMSApplicationServerVersion
|
static long |
EAST
|
static int |
GET_EXTRACT
|
static int |
GET_FEATURE
|
static int |
GET_GEOCODE
|
static int |
GET_IMAGE
|
static int |
GET_RASTER_INFO
|
static long |
NORTH
|
static long |
NORTHEAST
|
static long |
NORTHWEST
|
static long |
SOUTH
|
static long |
SOUTHEAST
|
static long |
SOUTHWEST
|
static String |
TOC_IMAGE_FORMAT_JPG
|
static String |
TOC_IMAGE_FORMAT_PNG
|
static long |
WEST
|
Constructor Summary | |
---|---|
Map()
Constructs an instance of a Map object. |
Method Summary | |
---|---|
void |
addWorkspace(Object workspace)
Associates a workspace object to this Map to prepare to dynamically add a layer. |
void |
centerAt(double x,
double y)
Centers the Map extents based on x and y pixel coordinates. |
void |
clearBuffer()
Removes the Buffer Layer and Buffer Region layer from the layer collection. |
void |
clearWorkspaces()
Removes all workspace objects associated with the Map object. |
void |
createBufferImage(boolean createImage,
boolean bufferRegion)
Specifies the creation of the bufferimage to be displayed on a map. |
void |
displayFeatures(FeatureLayer targetLayer,
boolean zoomToFeatures,
Object symbolObject)
Highlights and zooms specific features on the map, based on the spatial object and filter set in feature layer. |
void |
displayFeatures(FeatureLayer targetLayer,
Object spatialObject,
boolean zoomToFeatures,
Object symbolObject)
Deprecated. As of ArcIMS 4.0.1 Java Connector, replaced by displayFeatures(FeatureLayer targetLayer, Shape spatialObject, boolean zoomToFeatures, Object symbolObject) . |
void |
displayFeatures(FeatureLayer targetLayer,
Shape spatialObject,
boolean zoomToFeatures,
Object symbolObject)
Highlights and zooms specific features on the map, based on the spatial object. |
void |
displayFeatures(FeatureLayer targetLayer,
String expression,
boolean zoomToFeatures,
Object symbolObject)
Highlights and zooms to specific features on the map, based on a where expression. |
void |
doPan(long direction,
double step)
Deprecated. As of ArcIMS 4.0.1 Java Connector, replaced by doPan(long,long) . |
void |
doPan(long direction,
long step)
Pans the specified map service by recalculating the Map objects envelope object. |
void |
doZoom(long scaleFactor)
Zooms to a new location of the specified map service by recalculating the Map objects extent. |
void |
doZoomToExtent(Envelope obj)
Resets the Map objects extent by reassigning the extent to a new Envelope object. |
void |
doZoomToFullExtent()
Zooms to the Map objects initial extent envelope. |
Point |
fromMapPoint(double x,
double y)
Converts from database coordinate to pixel coordinate values. |
String |
getArcXML()
Returns a ArcXML String that will be built if a refresh() is called at that instance. |
String |
getBackground()
Returns the Map's background color value in RGB format. |
Capabilities |
getCapabilities()
Returns the list any restrictions for an ArcIMS service. |
ConnectionProxy |
getConnectionProxy()
Returns the ConnectionProxy object associated with this map object. |
String |
getDataFrameName()
Returns the name of the dataframe associated with this map object. |
long |
getDPI()
Returns the DPI(dots per square inch) for the output image. |
Envelope |
getEnvelope()
Returns the Envelope associated with this Map object. |
String |
getErrorMessage()
Returns the error message if there is any error in ArcXML response. |
FeatureCoordSys |
getFeatureCoordSys()
Returns the FeatureCoordSys associated with this Map object. |
FilterCoordSys |
getFilterCoordSys()
Returns the FilterCoordSys object associated with this Map object. |
long |
getHeight()
Returns the Map's height value in pixels. |
ImageLimit |
getImageLimit()
Returns the ImageLimit object associated with this Map object. |
FeatureCoordSys |
getInitialFeatureCoordSys()
Returns the FeatureCoordSys associated with this Map object. |
FilterCoordSys |
getIntialFilterCoordSys()
Returns the FilterCoordSys object associated with this Map object. |
Layers |
getLayers()
Returns the Layers collection associated with this Map object. |
Legend |
getLegend()
Returns the Legend associated with this Map object. |
Locale |
getLocale()
Returns the Locale object associated with this Map object. |
MapOutput |
getMapOutput()
Returns the Output object associated with this Map object. |
String |
getMapUnits()
Returns the map units associated with this Map object. |
int |
getPatchWidth()
|
long |
getPrintHeight()
Returns the height of the output image in pixels. |
long |
getPrintWidth()
Returns the width of the output image in pixels. |
Scale |
getScale()
Returns Scale associated with a dataframe. |
Separators |
getSeparators()
Returns the Separators object associated with this Map object. |
InputStream |
getServiceInfo()
Return the response information from ArcXML request GET_SERVICE_INFO as a InputStream |
String |
getShow()
|
byte[] |
getStream()
Returns map image in raw bytes. |
String |
getStreamType()
Returns the file type of streamed map raw bytes. |
String |
getSwatchBackgroundColor()
|
int |
getSwatchHeight()
|
String |
getTOCImageFormat()
|
String |
getTransColor()
Returns the Map objects transparency color property value in RGB format. |
UIFont |
getUIFont()
Returns the UIFont object associated with this Map object. |
long |
getWidth()
Returns the Map's width value in pixels. |
Object |
getWorkspace(int item)
Returns a workspace object by index. |
int |
getWorkspaceCount()
Returns the number of workspace objects associated with the Map. |
void |
initMap(ConnectionProxy connection,
long dpi,
boolean loadEnvelope,
boolean loadRenderer,
boolean loadFields,
boolean loadExtensions)
Initializes a Map object for a certain map service based on the ConnectionProxy. |
void |
initMap(ConnectionProxy connection,
long dpi,
boolean loadEnvelope,
boolean loadRenderer,
boolean loadFields,
boolean loadExtensions,
boolean loadAcetateInfo,
boolean loadRelativeScale)
Initializes a Map object for a certain map service based on the ConnectionProxy. |
boolean |
isAutoResize()
Returns autoresize associated with a Map. |
boolean |
isBufferRegion()
Returns true if the bufferRegion argument within the createBufferImage method was set to true. |
boolean |
isCreateBufferImage()
Returns true if the argument within the createBufferImage method is set to true. |
boolean |
isExtract()
Returns true if the Map object's setExtract method is set to true. |
boolean |
isReturnScale()
|
boolean |
isScaleSymbols()
Returns true if the setScaleSymbols method is set to true. |
boolean |
isShowSwatches()
|
boolean |
isUseServiceDatum()
|
void |
refresh()
Refreshes the current map service. |
void |
removeWorkspace(int item)
Removes an associated workspace object from the Map object. |
void |
reset()
Resets the model to its original state that existed after the initMap method was called. |
String |
sendArcXML(String axlString,
int requestType)
Sends the ArcXML string to the server based on the request type. |
Recordset |
sendGetFeatureRequest(FeatureLayer queryLayer)
Sends the GET_FEATURES request to the server based on the specified Feature layer. |
void |
sendImageRequest()
Set this method to send an Image request with Filter. |
void |
setAutoResize(boolean value)
Sets Map autoresize. |
void |
setBackground(String color)
Sets the Map's background color value in RGB format. |
void |
setConnectionProxy(ConnectionProxy obj)
Sets the ConnectionProxy object associated with this map object. |
void |
setDataFrameName(String value)
If the associated ArcIMS service is an ArcMap service, this method sets the name of the dataframe to the map object. |
void |
setDPI(long value)
Sets the DPI(dots per square inch) for the output image. |
void |
setEnvelope(Envelope obj)
Sets the map extent based on the given envelope object. |
void |
setExtract(boolean value)
Enables a GET_EXTRACT request. |
void |
setFeatureCoordSys(FeatureCoordSys obj)
Associates the given FeatureCoordSys object with the Map Object. |
void |
setFilterCoordSys(FilterCoordSys obj)
Associates a FilterCoordSys object to the Map Object. |
void |
setHeight(long height)
Sets the Map's height value in pixels. |
void |
setMapUnits(String value)
Sets the given map units for this Map object. |
void |
setPrintHeight(long value)
Sets the height of the output image in pixels. |
void |
setPrintWidth(long value)
Sets the width of the output image in pixels. |
void |
setReturnScale(boolean returnScale)
|
void |
setScale(Scale obj)
Sets Scale for a dataframe. |
void |
setScaleSymbols(boolean value)
Set Map's scalesymbols. |
void |
setServiceInfo(InputStream serviceInfo)
Set the information from ArcXML request GET_SERVICE_INFO as a InputStream |
void |
setShow(String show)
|
void |
setShowSwatches(boolean swatches)
|
void |
setStream(byte[] stream)
Sets map image raw bytes. |
void |
setStreamType(String type)
Sets file type of the streamed image raw bytes. |
void |
setSwatchBackgroundColor(String color)
|
void |
setSwatchHeight(int height)
|
void |
setSwatchWidth(int width)
|
void |
setTOCImageFormat(String imageFormat)
|
void |
setTransColor(String color)
Sets the Map's transparency color property in RGB format. |
void |
setUseServiceDatum(boolean useServiceDatum)
|
void |
setWidth(long width)
Sets the Map objects width value in pixels. |
Point |
toMapPoint(double x,
double y)
Converts from pixel coordinate values to database coordinate values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String ArcIMSApplicationServerVersion
public static final long NORTH
public static final long NORTHEAST
public static final long EAST
public static final long SOUTHEAST
public static final long SOUTH
public static final long SOUTHWEST
public static final long WEST
public static final long NORTHWEST
public static final int GET_IMAGE
public static final int GET_FEATURE
public static final int GET_GEOCODE
public static final int GET_EXTRACT
public static final int GET_RASTER_INFO
public static final String TOC_IMAGE_FORMAT_JPG
public static final String TOC_IMAGE_FORMAT_PNG
Constructor Detail |
---|
public Map()
Map map = new Map();
Method Detail |
---|
public void initMap(ConnectionProxy connection, long dpi, boolean loadEnvelope, boolean loadRenderer, boolean loadFields, boolean loadExtensions) throws Exception
map.initMap(connectionProxy, 0, true, true, true, true);
connection
- the ConnectionProxy Object.dpi
- Dots per inch (dpi). Used for calculating the correct scale thresholds for layers in the service. The dpi must be calculated by the client.
If set to 0, a value of 96 is assumed. This parameter sets the value of attribute
"dpi" in GET_SERVICE_INFO element.loadEnvelope
- Whether to get information on the envelope for featureclass layers in a service. Featureclass layers include shapefile and ArcSDE layers.
This parameter sets the value of attribute "envelope" in GET_SERVICE_INFO element.loadRenderer
- Whether to get renderer information for featureclass layers in a service. This parameter sets the value of attribute "renderer" in GET_SERVICE_INFO element.loadFields
- Whether to get information on available fields for each featureclass layer in the service.
This parameter sets the value of attribute "fields" in GET_SERVICE_INFO element.loadExtensions
- When set to true and a featureclass layer has EXTENSION elements, e.g. for extract or geocode, in the .axl configuration file, information
about these EXTENSION elements will be included in the ArcXML response. This parameter sets the value of attribute "extensions" in GET_SERVICE_INFO element.
Exception
public void initMap(ConnectionProxy connection, long dpi, boolean loadEnvelope, boolean loadRenderer, boolean loadFields, boolean loadExtensions, boolean loadAcetateInfo, boolean loadRelativeScale) throws Exception
map.initMap(connectionProxy, 0, true, true, true, true);
connection
- the ConnectionProxy Object.dpi
- Dots per inch (dpi). Used for calculating the correct scale thresholds for layers in the service. The dpi must be calculated by the client.
If set to 0, a value of 96 is assumed. This parameter sets the value of attribute
"dpi" in GET_SERVICE_INFO element.loadEnvelope
- Whether to get information on the envelope for featureclass layers in a service. Featureclass layers include shapefile and ArcSDE layers.
This parameter sets the value of attribute "envelope" in GET_SERVICE_INFO element.loadRenderer
- Whether to get renderer information for featureclass layers in a service. This parameter sets the value of attribute "renderer" in GET_SERVICE_INFO element.loadFields
- Whether to get information on available fields for each featureclass layer in the service.
This parameter sets the value of attribute "fields" in GET_SERVICE_INFO element.loadExtensions
- When set to true and a featureclass layer has EXTENSION elements, e.g. for extract or geocode, in the .axl configuration file, information
about these EXTENSION elements will be included in the ArcXML response. This parameter sets the value of attribute "extensions" in GET_SERVICE_INFO element.loadAcetateInfo
- Whether to include all symbol information and geometry from an acetate layer.loadRelativeScale
- Whether to return scale in relative or not for layer and scale dependent renderer.
Exception
public void setWidth(long width)
map.setWidth(400);
width
- the width value.getWidth()
public void setHeight(long height)
map.setHeight(350);
height
- the height value.getHeight()
public long getWidth()
long width = map.getWidth();
setWidth(long)
public long getHeight()
long height = map.getHeight();
setHeight(long)
public void sendImageRequest()
map.sendImageRequest();
When there is a filter applied to any FeatureLayer in the Map object, calling
map.refresh() will send a GET_FEATURES request with the Filter. To force the
Java Connector to send a GET_IMAGE request, call this method.
Following code will only send a GET_FEATURES request:
featureLayer.setFilterObject(filter);
map.refresh();
featureLayer.setFilterObject(filter);
map.sendImageRequest();
map.refresh();
featureLayer.setFilterObject(filter);
map.refresh();
map.sendImageRequest();
map.refresh();
The Filter information will be applied to the FeatureLayer, so only features that satisfy
the Filter criteria will be drawn on the layer in the returned map.
Unlike displayFeatures, which creates an extra layer for the Filter information,
this method applies the Filter information on the original FeatureLayer.
When the Filter object has included a Buffer object, the better choice to
force Java Connector to send a GET_IMAGE request is to
call method createBufferImage(boolean, boolean).
public void setPrintHeight(long value)
map.setPrintHeight(400);
value
- the pixel value.getPrintHeight()
public void setPrintWidth(long value)
map.setPrintWidth(400);
value
- the pixel value.getPrintWidth()
public long getPrintHeight()
long printHeight = map.getPrintHeight();
setPrintHeight(long)
public long getPrintWidth()
long printWidth = map.getPrintWidth();
setPrintWidth(long)
public void setScaleSymbols(boolean value)
value
- Default value is false.isScaleSymbols()
public boolean isScaleSymbols()
boolean scaleSymbols = map.isScaleSymbols();
setScaleSymbols(boolean)
public void setDPI(long value)
map.setDPI(200);
value
- the DPI value.getDPI()
public long getDPI()
long dpi = map.getDPI();
setDPI(long)
public void setAutoResize(boolean value)
value
- Default is false.isAutoResize()
public boolean isAutoResize()
setAutoResize(boolean)
public void setBackground(String color)
map.setBackground("255,0,0");
color
- the color value.getBackground()
public String getBackground()
String color = map.getBackground();
setBackground(java.lang.String)
public void setTransColor(String color)
map.setBackground("255,255,255");
map.setTransColor("255,255,255");
color
- the color value.getTransColor()
public String getTransColor()
String transcolor = map.getTransColor();
setTransColor(java.lang.String)
public void centerAt(double x, double y)
map.centerAt(255.0, 155.0);
x
- is passed as doubley
- is passed as doubledoZoom(long)
,
doPan(long, double)
public Legend getLegend()
Legend legend = map.getLegend();
public Point toMapPoint(double x, double y)
PointObject pnt = map.toMapPoint(100, 100);
x
- the x coordinate.y
- the y coordinate.
fromMapPoint(double, double)
public Point fromMapPoint(double x, double y)
PointObject pnt = map.fromMapPoint(-125.00, 45.0);
x
- the x coordinate value.y
- the y coordinate value.
public void doZoom(long scaleFactor)
map.doZoom(2);
scaleFactor
- the scale factor value.doPan(long, double)
,
centerAt(double, double)
public void displayFeatures(FeatureLayer targetLayer, Object spatialObject, boolean zoomToFeatures, Object symbolObject)
displayFeatures(FeatureLayer targetLayer, Shape spatialObject, boolean zoomToFeatures, Object symbolObject)
.
map.displayFeatures(featureLayer, envelope, true, simpleMarkerSymbol);
See displayFeatures(FeatureLayer, boolean, Object) for more information.
targetLayer
- the FeatureLayer to query for feature.spatialObject
- the the spatial object to perform the spatial query against.zoomToFeatures
- specifies whether to zoom to selected features.symbolObject
- the symbol object to assign to the highlighted feature.doPan(long, double)
,
doPan(long, double)
,
doZoomToExtent(com.esri.aims.mtier.model.envelope.Envelope)
,
doZoomToFullExtent()
public void displayFeatures(FeatureLayer targetLayer, Shape spatialObject, boolean zoomToFeatures, Object symbolObject)
map.displayFeatures(featureLayer, envelope, true, simpleMarkerSymbol);
See displayFeatures(FeatureLayer, boolean, Object) for more information.
targetLayer
- the FeatureLayer to query for feature.spatialObject
- the the spatial object to perform the spatial query against.zoomToFeatures
- specifies whether to zoom to selected features.symbolObject
- the symbol object to assign to the highlighted feature.doPan(long, double)
,
doPan(long, double)
,
doZoomToExtent(com.esri.aims.mtier.model.envelope.Envelope)
,
doZoomToFullExtent()
public void displayFeatures(FeatureLayer targetLayer, boolean zoomToFeatures, Object symbolObject)
map.displayFeatures(featureLayer, true, simpleMarkerSymbol);
targetLayer
- the FeatureLayer to query for feature.zoomToFeatures
- specifies whether to zoom to selected features.symbolObject
- the symbol object to assign to the highlighted feature.doPan(long, double)
,
doPan(long, double)
,
doZoomToExtent(com.esri.aims.mtier.model.envelope.Envelope)
,
doZoomToFullExtent()
public void displayFeatures(FeatureLayer targetLayer, String expression, boolean zoomToFeatures, Object symbolObject)
map.displayFeatures(featureLayer, "Name='Scofield'", true, simpleMarkerSymbol);
See displayFeatures(FeatureLayer, boolean, Object) for more information.
targetLayer
- the FeatureLayer to query for feature.expression
- the expression to query for the desired features.zoomToFeatures
- specifies whether to zoom to selected features.symbolObject
- the symbol object to assign to the highlighted feature.doPan(long, double)
,
doPan(long, double)
,
doZoomToExtent(com.esri.aims.mtier.model.envelope.Envelope)
,
doZoomToFullExtent()
public void doPan(long direction, double step)
doPan(long,long)
.
map.doPan(Map.SOUTHWEST, 3);
direction
- the directional constant value.step
- the amount of directional shift.doZoom(long)
,
centerAt(double, double)
public void doPan(long direction, long step)
map.doPan(Map.SOUTHWEST, 3);
direction
- the directional constant value.step
- the amount of directional shift.doZoom(long)
,
centerAt(double, double)
public void doZoomToExtent(Envelope obj)
map.doZoomToExtent(envelope);
obj
- the Envelope object.public void doZoomToFullExtent()
map.doZoomToFullExtent();
doPan(long, double)
,
doZoom(long)
,
centerAt(double, double)
public void refresh()
map.setExtract(true)
is called, the request is GET_EXTRACT.
map.sendImageRequest()
is called, the request is GET_IMAGE.
map.getWorkspaceCount()>0
, the request is GET_IMAGE. Please see KB
article 26364 for more information on its impact on the following Filter
operation.
map.createBufferImage(true,true/false)
is called,
both GET_FEATURES and GET_IMAGE requests will be sent. See map.createBufferImage()
for more information.
ImageLayer.setRasterObject()
sendGetFeatureRequest(com.esri.aims.mtier.model.map.layer.FeatureLayer)
for querying dynamic layer.
getMapOutput()
public MapOutput getMapOutput()
MapOutput output = map.getMapOutput();
refresh()
public Layers getLayers()
String type = map.getLayers().item(1).getType();
public void setEnvelope(Envelope obj)
map.setEnvelope(envelope);
obj
- the Envelope object.getEnvelope()
public Envelope getEnvelope()
Envelope env = map.getEnvelope();
setEnvelope(com.esri.aims.mtier.model.envelope.Envelope)
public void setScale(Scale obj)
public Scale getScale()
public void setStream(byte[] stream)
public byte[] getStream()
public void setStreamType(String type)
public String getStreamType()
public void setExtract(boolean value)
value
- Default is false. When set to true, a GET_EXTRACT request will be sent. Only
Feature layers that are visible at the current scale and
FeatureLayer.setExtractable(true)
is called will be extracted.isExtract()
public boolean isExtract()
if(map.isExtract() == true){ map.setExtract(false);}
setExtract(boolean)
public void setFeatureCoordSys(FeatureCoordSys obj)
map.setFeatureCoordSys(featureCoordSys);
obj
- the FeatureCoordSys object.getFeatureCoordSys()
,
setFilterCoordSys(com.esri.aims.mtier.model.map.projection.FilterCoordSys)
public FeatureCoordSys getFeatureCoordSys()
String id = map.getFeatureCoordSys().getID();
setFeatureCoordSys(com.esri.aims.mtier.model.map.projection.FeatureCoordSys)
public FeatureCoordSys getInitialFeatureCoordSys()
String id = map.getIntialFeatureCoordSys().getID();
public void setFilterCoordSys(FilterCoordSys obj)
map.setFilterCoordSys(filterCoordSys);
obj
- the FilterCoordSys object.getFilterCoordSys()
,
setFeatureCoordSys(com.esri.aims.mtier.model.map.projection.FeatureCoordSys)
public FilterCoordSys getFilterCoordSys()
String id = map.getFilterCoordSys().getID();
setFilterCoordSys(com.esri.aims.mtier.model.map.projection.FilterCoordSys)
public FilterCoordSys getIntialFilterCoordSys()
String id = map.getInitialFilterCoordSys().getID();
public String getMapUnits()
setMapUnits(java.lang.String)
public void setMapUnits(String value)
map.setMapUnits(Map.METERS);
value
- the map units value.getMapUnits()
public Separators getSeparators()
Separators separators = map.getSeparators();
getUIFont()
,
getLocale()
public UIFont getUIFont()
UIFont uiFont = map.getUIFont();
getSeparators()
,
getLocale()
public Locale getLocale()
Locale locale = map.getLocale();
getSeparators()
,
getUIFont()
public ImageLimit getImageLimit()
ImageLimit imageLimit = map.getImageLimit();
public void createBufferImage(boolean createImage, boolean bufferRegion)
...
filter.setBufferObject(buffer);
...
fLayer.setFilterObject(filter);
....
map.createBufferImage(true, false);
map.refresh();
After the Buffer and Filter objects are set to a FeatureLayer, when map.refresh() is invoked,
Java Connector will usually send
a GET_FEATURES request. Call this method before map.refresh() to let the Java Connector
know whether to send a GET_IMAGE request too besides the GET_FEATURES request.
filter.setBufferObject(buffer)
, this method will take effect
ONLY when buffer.setPerformBuffer(true)
is called.
filter.setEnvelopeBuffer(buffer)
, this method does NOT take effect.
createImage
- specifies whether to create the image of the selected features. Default value is
false. When set to true, Java Connector will send a GET_IMAGE request with the
buffer information. Features that fall within the buffer region as defined by the Buffer
object will be drawn on a layer called "BufferLayer", which is newly created for this buffer query.
The symbol of these features are set by Buffer.setBufferSelectionSymbol(Object)
.bufferRegion
- specifies whether to draw the buffer region on the map. This parameter only
works when parameter "createImage" is set to true. Default value is false. When
both "createImage" and "bufferRegion" are set to true, in the GET_IMAGE request,
Java Connector will not only create a "BufferLayer" for the features falling
within the buffer region, another layer "BufferRegion" is also created. This
layer has the image of the buffer region as defined by the Buffer Object. The
symbol of the buffer region is set by Buffer.setBufferRegionSymbol(Object)
isCreateBufferImage()
,
isBufferRegion()
public boolean isCreateBufferImage()
if(map.isCreateBufferImage() == true){ map.createBufferImage(false, false);}
createBufferImage(boolean, boolean)
,
isBufferRegion()
public boolean isBufferRegion()
if(map.isBufferRegion() == true){ map.createBufferImage(false, false);}
createBufferImage(boolean, boolean)
,
isCreateBufferImage()
public void reset()
map.reset();
initMap(com.esri.aims.mtier.io.ConnectionProxy, long, boolean, boolean, boolean, boolean)
public void addWorkspace(Object workspace)
ShapeWorkspace shpw = new ShapeWorkspace();
shpw.setDirectory("C:\\temp");
shpw.setName("workspace1");
map.addWorkspace(shpw);
Dataset data = new Dataset();
data.setName("sc_topoq24");
data.setWorkspaceName(shpw.getName());
data.setType("line");
FeatureLayer fl = new FeatureLayer("topo", null, null);
fl.setDataset(data);
fl.setName("topoQuad");
fl.setVisible(true);
map.getLayers().add(fl);
map.refresh();
All methods in class Map involving "workspace": clearWorkspaces(),
getWorkspace(int), getWorkspaceCount(), removeWorkspace(int)
refer to
the workspace added with this method.
workspace
- the workspace object.getWorkspaceCount()
,
getWorkspace(int)
,
clearWorkspaces()
,
removeWorkspace(int)
public int getWorkspaceCount()
int count = map.getWorkspaceCount();
addWorkspace(java.lang.Object)
,
getWorkspace(int)
,
clearWorkspaces()
,
removeWorkspace(int)
public Object getWorkspace(int item)
ShapeWorkspace sworkspace = (ShapeWorkspace)map.getWorkspace(0);
item
- the workspace item.
addWorkspace(java.lang.Object)
,
getWorkspaceCount()
,
clearWorkspaces()
,
removeWorkspace(int)
public void clearWorkspaces()
map.clearWorkspaces();
addWorkspace(java.lang.Object)
,
getWorkspaceCount()
,
getWorkspace(int)
,
removeWorkspace(int)
public void removeWorkspace(int item)
map.removeWorkspace(0);
item
- the workspace object to remove.clearWorkspaces()
,
getWorkspace(int)
,
getWorkspaceCount()
,
addWorkspace(java.lang.Object)
public void setDataFrameName(String value)
map.setDataFrameName("Tavaputs");
value
- the dataframe name valuegetDataFrameName()
public String getDataFrameName()
String dfname = map.getDataFrameName();
setDataFrameName(java.lang.String)
public void setConnectionProxy(ConnectionProxy obj)
map.setConnectionProxy(connectionProxy);
obj
- the ConnectionProxy object.getConnectionProxy()
public ConnectionProxy getConnectionProxy()
String service = map.getConnectionProxy().getService();
setConnectionProxy(com.esri.aims.mtier.io.ConnectionProxy)
public String getArcXML()
String axlString = map.getArcXML();
sendArcXML(java.lang.String, int)
public String sendArcXML(String axlString, int requestType)
map.sendArcXML(axlString,Map.GET_FEATURE);
axlString
- ArcXML String valuerequestType
- Request type like GET_IMAGE, GET_FEATURE, GET_GEOCODE, GET_EXTRACT or GET_RASTER_INFO
getArcXML()
public InputStream getServiceInfo()
public void setServiceInfo(InputStream serviceInfo)
serviceInfo
- the GET_SERVICE_INFO responsepublic void clearBuffer()
public String getErrorMessage()
String
- the error messagepublic Capabilities getCapabilities()
Capabilities
- the list of restrictions for an ArcIMS Service.public void setShowSwatches(boolean swatches)
public boolean isShowSwatches()
public void setTOCImageFormat(String imageFormat)
public String getTOCImageFormat()
public void setSwatchHeight(int height)
public int getSwatchHeight()
public void setSwatchWidth(int width)
public int getPatchWidth()
public void setSwatchBackgroundColor(String color)
public String getSwatchBackgroundColor()
public void setShow(String show)
public void setUseServiceDatum(boolean useServiceDatum)
public void setReturnScale(boolean returnScale)
public String getShow()
public boolean isUseServiceDatum()
public boolean isReturnScale()
public Recordset sendGetFeatureRequest(FeatureLayer queryLayer)
Example:
FeatureLayer fLayer = (FeatureLayer) map.getLayers().item(5);
Filter filter = new Filter();
filter.setWhereExpression("NAME='Gilroy'");
filter.addSubField("#ID#");
filter.addSubField("POP");
filter.addSubField("NAME");
filter.setCheckesc(true);
fLayer.setFilterObject(filter);
Recordset results = map.sendGetFeatureRequest(fLayer);
if (map.getErrorMessage() == null) {
System.out.println("Display the results.");
} else {
System.out.println(map.getErrorMessage());
}
queryLayer
- the FeatureLayer
object to build GET_FEATURES Request.
Recordset
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |