public interface Map
Map service component interface.
${services_components_Map_Description}
Modifier and Type | Method and Description |
---|---|
void |
clearCache(Rectangle2D bounds)
${services_components_Map_method_clearCachebyBounds_Title}
|
void |
clearCache(Rectangle2D bounds, MapParameter mapParameter, ImageOutputOption outputOption)
Clears the cache within specified map extent.
|
QueryResult |
findNearest(Geometry geometry, double maxDistance, QueryParameterSet queryParameter, java.lang.String mapName)
Queries the geometric objects on a specified map whose distances to a specified geometry are within a certain value.
|
java.util.List<ChartFeatureInfoSpec> |
getChartFeatureInfoSpecs(java.lang.String mapName)
Chart feature.
|
MapParameter |
getDefaultMapParameter(java.lang.String mapName)
${services_components_Map_method_getDefaultMapParameter_Title}
|
java.util.List<PrjCoordSys> |
getDynamicPrjCoordsyses(java.lang.String mapName) |
MapImage |
getMapImage(MapParameter mapParameter, ImageOutputOption outputOption)
Gets map images according to map parameters and image output settings.
|
java.util.List<java.lang.String> |
getMapNames()
${services_components_Map_method_getMapNames_Title}
|
MapParameter |
getMapParameter(java.lang.String mapName)
Gets parameters of the specified map.
|
byte[] |
getMVTFonts(java.lang.String mapName, java.lang.String fontstack, java.lang.String range)
Gets the font of sdf format.
|
java.lang.String |
getMVTSpriteJson(java.lang.String mapName, java.lang.String spriteName)
Gets the json of the MVT Sprite.
|
byte[] |
getMVTSpriteResource(java.lang.String mapName, java.lang.String spriteName)
Gets the resource of the MVT Sprite.
|
byte[] |
getMVTTile(VectorTileParameter vectorTileParameter)
Gets MVT tile of the map.
|
Overview |
getOverview(MapParameter mapParameter, ImageOutputOption outputOption)
Gets eagle-eye map according to map parameters and image output settings.
|
java.lang.String |
getResource(ResourceParameter resourceParameter)
${services_components_Map_method_getResource_Title}
|
byte[] |
getResource(ResourceParameter resourceParameter, Point2D[] points)
Gets resource image according to resource image parameter.
|
byte[] |
getResource(java.lang.String mapName, java.lang.String symbolId, OutputFormat format)
Gets resource image according to resource image parameter.
|
MapImage |
getTrackingLayerImage(MapParameter mapParameter, ImageOutputOption outputOption)
Gets images of TrackingLayer according to map parameters and image output settings.
|
UTFGridResult |
getUTFGrid(UTFGridParameter gridParameter)
Extracts the UTFGrid JSON object from a specified layer according to the map extent.
|
VectorStyle |
getVectorStyle(java.lang.String mapName, java.lang.String[] layerNames, VectorStyleType type)
Gets the specified vector layer style in the specified map.
|
VectorTileData |
getVectorTile(VectorTileParameter vectorTileParameter)
Gets vector tile of the map.
|
java.lang.String[] |
listMVTSprites(java.lang.String mapName)
Lists all the Sprites names of the MVT.
|
MeasureResult |
measureArea(java.lang.String mapName, Point2D[] points, MeasureParameter measureParameter)
${services_components_Map_method_measureArea_Title}
|
MeasureResult |
measureDistance(java.lang.String mapName, Point2D[] points, MeasureParameter measureParameter)
${services_components_Map_method_measureDistance_Title}
|
MapImage |
pan(double offsetX, double offsetY, MapParameter mapParameter, ImageOutputOption outputOption)
Map panning.
|
QueryResult |
queryByBounds(java.lang.String mapName, Rectangle2D bounds, QueryParameterSet queryParameters)
Queries the geometries in the specified range on the map.
|
QueryResult |
queryByDistance(java.lang.String mapName, Geometry geometry, double distance, QueryParameterSet queryParameters)
Queries the geometric objects on a specified map whose distances to a specified geometry are within a certain value.
|
QueryResult |
queryByGeometry(java.lang.String mapName, Geometry geometry, SpatialQueryMode spatialQueryMode, QueryParameterSet queryParameters)
${services_components_Map_method_queryByGeometry_Title}
|
QueryResult |
queryByKeywords(java.lang.String mapName, KeywordsQueryParameterSet queryParameterSet)
Queries the map features based on the keyword.
|
QueryResult |
queryBySQL(java.lang.String mapName, QueryParameterSet queryParameters)
${services_components_Map_method_queryBySQL_Title}
|
QueryResult |
queryChart(java.lang.String mapName, java.lang.String[] chartLayerNames, ChartQueryParameterSet chartQueryParams)
Chart feature.
|
QueryResult |
queryChart(java.lang.String mapName, java.lang.String[] chartLayerNames, ChartQueryParameterSet chartQueryParams, Rectangle2D bounds)
Chart feature.
|
MapParameter |
setDefaultMapParameter(MapParameter mapParameter)
${services_components_Map_method_setDefaultMapParameter_Title}
|
boolean |
support(java.lang.String mapName, MapCapability capability)
Determines whether the map supports the specified function.
|
boolean |
updateMap(MapParameter mapParameter)
Updates the map status permanently, which will do a persistence in the disk.
|
void |
updateVectorStyle(java.lang.String mapName, java.lang.String layerName, VectorStyleType type, java.lang.String style)
Updates the specified vector layer style in the specified map.
|
MapImage |
viewByBounds(Rectangle2D bounds, MapParameter mapParameter, ImageOutputOption outputOption)
Displays map according to the bounds of geographic coordinates.
|
MapImage |
viewByScale(Point2D center, double scale, MapParameter mapParameter, ImageOutputOption outputOption)
Center point.
|
MapImage |
viewEntire(MapParameter mapParameter, ImageOutputOption outputOption)
Displays a map in the Full Extent mode according to map parameters and image output settings.
|
MapImage |
viewEntire(java.lang.String layerName, MapParameter mapParameter, ImageOutputOption outputOption)
Displays a map in the Full Extent mode according to map layer name, map parameters and image output settings.
|
MapImage |
zoom(Point2D center, double ratio, MapParameter mapParameter, ImageOutputOption outputOption)
Performs map scaling according to the specified center point, zoom scale, map parameter and image output settings.
|
void clearCache(Rectangle2D bounds) throws MapException
${services_components_Map_method_clearCachebyBounds_Title}
${services_components_Map_method_clearCachebyBounds_Description}
bounds
- ${services_components_Map_method_clearCachebyBounds_param_bounds}MapException
- ${services_components_Map_method_clearCachebyBounds_throws_MapException}void clearCache(Rectangle2D bounds, MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Clears the cache within specified map extent.
bounds
- The specified map extent.mapParameter
- Map parameters.outputOption
- Image output settings.MapException
- A map service component exception.java.util.List<java.lang.String> getMapNames()
${services_components_Map_method_getMapNames_Title}
${services_components_Map_method_getMapNames_Description}
MapParameter getMapParameter(java.lang.String mapName) throws MapException
Gets parameters of the specified map.
mapName
- The map name.MapException
- Displays a map according to the specified center point and scale.MapImage getMapImage(MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Gets map images according to map parameters and image output settings.
mapParameter
- Map parameters.outputOption
- Image output settings.MapException
- Displays a map according to the specified center point and scale.java.lang.String getResource(ResourceParameter resourceParameter) throws MapException
${services_components_Map_method_getResource_Title}
${services_components_Map_method_getResource_Description}
resourceParameter
- ${services_components_Map_method_getResource_param_resourceParameter}MapException
- ${services_components_Map_method_getResource_throws_MapException}byte[] getResource(ResourceParameter resourceParameter, Point2D[] points) throws MapException
resourceParameter
- The resource image parameter, including the image height, width, type, resource type, style, etcpoints
- The points used to draw resource images.MapException
- Displays a map according to the specified center point and scale.byte[] getResource(java.lang.String mapName, java.lang.String symbolId, OutputFormat format) throws MapException
symbolId
- Symbol id.format
- Symbol Format.MapException
- Displays a map according to the specified center point and scale.MeasureResult measureDistance(java.lang.String mapName, Point2D[] points, MeasureParameter measureParameter) throws MapException
${services_components_Map_method_measureDistance_Title}
${services_components_Map_method_measureDistance_Description}
mapName
- ${services_components_Map_method_measureDistance_param_mapName}points
- ${services_components_Map_method_measureDistance_param_points}measureParameter
- ${services_components_Map_method_measureDistance_param_measureParameter}MapException
- ${services_components_Map_method_measureDistance_throws_MapException}MeasureResult measureArea(java.lang.String mapName, Point2D[] points, MeasureParameter measureParameter) throws MapException
${services_components_Map_method_measureArea_Title}
${services_components_Map_method_measureArea_Description}
mapName
- ${services_components_Map_method_measureArea_param_mapName}points
- ${services_components_Map_method_measureArea_param_points}measureParameter
- ${services_components_Map_method_measureArea_param_measureParameter}MapException
- ${services_components_Map_method_measureArea_throws_MapException}QueryResult queryByDistance(java.lang.String mapName, Geometry geometry, double distance, QueryParameterSet queryParameters) throws MapException
Queries the geometric objects on a specified map whose distances to a specified geometry are within a certain value.
Which means to query all the geometries within a circle whose center is the specified geometry.
mapName
- The map name.geometry
- The geometric object.distance
- The unit of the distance extent is identical to that of dataset coordinates corresponding to the current map.queryParameters
- Query parameters can query multiple layers of a map. The query parameters in a single layer can be set in queryParameters.queryParams[i]
.MapException
- Displays a map according to the specified center point and scale.QueryResult queryByGeometry(java.lang.String mapName, Geometry geometry, SpatialQueryMode spatialQueryMode, QueryParameterSet queryParameters) throws MapException
${services_components_Map_method_queryByGeometry_Title}
${services_components_Map_method_queryByGeometry_Description}
mapName
- ${services_components_Map_method_queryByGeometry_param_mapName}geometry
- ${services_components_Map_method_queryByGeometry_param_geometry}spatialQueryMode
- ${services_components_Map_method_queryByGeometry_param_spatialQueryMode}queryParameters
- ${services_components_Map_method_queryByGeometry_param_queryParameters}MapException
- ${services_components_Map_method_queryByGeometry_throws_MapException}QueryResult queryBySQL(java.lang.String mapName, QueryParameterSet queryParameters) throws MapException
${services_components_Map_method_queryBySQL_Title}
${services_components_Map_method_queryBySQL_Description}
mapName
- ${services_components_Map_method_queryBySQL_param_mapName}queryParameters
- ${services_components_Map_method_queryBySQL_param_queryParameters}MapException
- ${services_components_Map_method_queryBySQL_throws_MapException}QueryResult queryByBounds(java.lang.String mapName, Rectangle2D bounds, QueryParameterSet queryParameters) throws MapException
Queries the geometries in the specified range on the map.
mapName
- The map name.bounds
- The specified query bounds.queryParameters
- Query parameters can query multiple layers of a map. The query parameters in a single layer can be set in queryParameters.queryParams[i]
.MapException
- Displays a map according to the specified center point and scale.MapParameter setDefaultMapParameter(MapParameter mapParameter) throws MapException
${services_components_Map_method_setDefaultMapParameter_Title}
${services_components_Map_method_setDefaultMapParameter_Description}
mapParameter
- ${services_components_Map_method_setDefaultMapParameter_param_mapParameter}MapException
- ${services_components_Map_method_setDefaultMapParameter_throws_MapException}MapParameter getDefaultMapParameter(java.lang.String mapName) throws MapException
${services_components_Map_method_getDefaultMapParameter_Title}
${services_components_Map_method_getDefaultMapParameter_Description}
mapName
- ${services_components_Map_method_getDefaultMapParameter_param_mapName}MapException
- ${services_components_Map_method_getDefaultMapParameter_throws_MapException}MapImage pan(double offsetX, double offsetY, MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Map panning.
offsetX
- Geographic coordinates offset in the horizontal axis.offsetY
- Geographic coordinates offset in the vertical axis.mapParameter
- Map parameters.outputOption
- Image output settings.MapException
- Displays a map according to the specified center point and scale.MapImage viewByBounds(Rectangle2D bounds, MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Displays map according to the bounds of geographic coordinates.
bounds
- The bounds of geographic coordinates.mapParameter
- Map parameters.outputOption
- Image output settings.MapException
- Displays a map according to the specified center point and scale.MapImage viewByScale(Point2D center, double scale, MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Center point.
center
- Center point.scale
- The specified scale.mapParameter
- Map parameters.outputOption
- Image output settings.MapException
- Displays a map according to the specified center point and scale.MapImage zoom(Point2D center, double ratio, MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Performs map scaling according to the specified center point, zoom scale, map parameter and image output settings.
center
- Center point.ratio
- Zoom scale.mapParameter
- Map parameters.outputOption
- Image output settings.MapException
- Displays a map according to the specified center point and scale.MapImage viewEntire(MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Displays a map in the Full Extent mode according to map parameters and image output settings.
mapParameter
- Map parameters.outputOption
- Image output settings.MapException
- Displays a map according to the specified center point and scale.MapImage getTrackingLayerImage(MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Gets images of TrackingLayer according to map parameters and image output settings.
mapParameter
- Map parameters.outputOption
- Image output settings.MapException
- Displays a map according to the specified center point and scale.QueryResult findNearest(Geometry geometry, double maxDistance, QueryParameterSet queryParameter, java.lang.String mapName) throws MapException
Queries the geometric objects on a specified map whose distances to a specified geometry are within a certain value.
When limit the number of returned geometric objects (specified by QueryParameterSet.expectCount
), the query result is the expectCount features nearest to the center in the records. There is no orders of expectCount.
geometry
- ${services_components_Map_method_findNearest_param_geometry}maxDistance
- The unit of the distance extent is identical to that of dataset coordinates corresponding to the current map.queryParameter
- ${services_components_Map_method_findNearest_param_queryParameter}mapName
- ${services_components_Map_method_findNearest_param_mapName}MapException
- ${services_components_Map_method_findNearest_throws_MapException}MapImage viewEntire(java.lang.String layerName, MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Displays a map in the Full Extent mode according to map layer name, map parameters and image output settings.
The full geographic map extent to display is the minimum circumscribed rectangle of the specified layer.
layerName
- Layer name, used to determine the full map extent.mapParameter
- Map parameters.outputOption
- Image output settings.MapException
- If error occurs during the map display procedure, then it will throw an exception about map service component.Overview getOverview(MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Gets eagle-eye map according to map parameters and image output settings.
mapParameter
- Map parameters.outputOption
- Image output settings.MapException
- A map service component exception.java.util.List<PrjCoordSys> getDynamicPrjCoordsyses(java.lang.String mapName) throws MapException
MapException
java.util.List<ChartFeatureInfoSpec> getChartFeatureInfoSpecs(java.lang.String mapName) throws MapException
MapException
QueryResult queryChart(java.lang.String mapName, java.lang.String[] chartLayerNames, ChartQueryParameterSet chartQueryParams) throws MapException
MapException
QueryResult queryChart(java.lang.String mapName, java.lang.String[] chartLayerNames, ChartQueryParameterSet chartQueryParams, Rectangle2D bounds) throws MapException
MapException
UTFGridResult getUTFGrid(UTFGridParameter gridParameter) throws MapException
gridParameter
- UTFGrid request parameters.MapException
- A map service component exception.VectorTileData getVectorTile(VectorTileParameter vectorTileParameter) throws MapException
Gets vector tile of the map.
vectorTileParameter
- The parameters of the vector tile.MapException
byte[] getMVTTile(VectorTileParameter vectorTileParameter) throws MapException
Gets MVT tile of the map.
vectorTileParameter
- The parameters of the vector tile.MapException
boolean support(java.lang.String mapName, MapCapability capability)
mapName
- The map name.capability
- Function type.QueryResult queryByKeywords(java.lang.String mapName, KeywordsQueryParameterSet queryParameterSet) throws MapException
mapName
- The map name.queryParameterSet
- Query parameter set.MapException
VectorStyle getVectorStyle(java.lang.String mapName, java.lang.String[] layerNames, VectorStyleType type) throws MapException
mapName
- The map name.layerNames
- The layer name.type
- The vector style type.MapException
void updateVectorStyle(java.lang.String mapName, java.lang.String layerName, VectorStyleType type, java.lang.String style) throws MapException
mapName
- The map name.layerNames
- The layer name.type
- The vector style type.MapException
java.lang.String[] listMVTSprites(java.lang.String mapName)
mapName
- The map name.java.lang.String getMVTSpriteJson(java.lang.String mapName, java.lang.String spriteName)
mapName
- The map name.spriteName
- Sprite name.byte[] getMVTSpriteResource(java.lang.String mapName, java.lang.String spriteName)
mapName
- The map name.spriteName
- Sprite name.byte[] getMVTFonts(java.lang.String mapName, java.lang.String fontstack, java.lang.String range)
mapName
- The map name.fontstack
- The fontstack name.range
- rang.boolean updateMap(MapParameter mapParameter) throws MapException
mapParameter
- The map status to update to.MapException