|
void | GetBounds (out double xMin, out double yMin, out double zMin, out double xMax, out double yMax, out double zMax) |
| Gets the bounds of the extents object. More...
|
|
void | GetMeasureBounds (out double mMin, out double mMax) |
| Gets the minimum and maximum measure bounds for the extents object. More...
|
|
void | MoveTo (double x, double y) |
| Moves extents so that center point will be at specified coordinates, while width and height will be preserved. More...
|
|
bool | PointIsWithin (double x, double y) |
| Checks whether a point is within extents More...
|
|
void | SetBounds (double xMin, double yMin, double zMin, double xMax, double yMax, double zMax) |
| Sets the bounds for the extents object. More...
|
|
void | SetMeasureBounds (double mMin, double mMax) |
| Sets the measure bounds of the extents object. More...
|
|
string | ToDebugString () |
| Gets serialized contents of the extents for debug purposes. More...
|
|
Shape | ToShape () |
| Creates a rectangular polygon matching current extents. More...
|
|
|
Point | Center [get] |
| Gets a center point for the extents. More...
|
|
double | Depth [get] |
| Gets the Depth of the extents object (zMax - zMin). More...
|
|
double | Height [get] |
| Gets the Height of the extents object (yMax - yMin). More...
|
|
double | mMax [get] |
| The maximum measure bound in the exents object. Measure bounds only apply to shapefiles containing measure data. More...
|
|
double | mMin [get] |
| Gets the minimum measure bound for the extents object. Measure bounds only apply to shapefiles containing measure data. More...
|
|
double | Width [get] |
| Gets the Width of the extents object (xMax - xMin). More...
|
|
double | xMax [get] |
| The maximum x bound for the extents object. More...
|
|
double | xMin [get] |
| Gets the minimum x bound for the extents object. More...
|
|
double | yMax [get] |
| The maximum y bound for the extents object. More...
|
|
double | yMin [get] |
| Gets the minimum y bound for the extents object More...
|
|
double | zMax [get] |
| The maximum z bound for the extents object. More...
|
|
double | zMin [get] |
| Gets the minimum z bound for the extents object. More...
|
|
Represents a rectangle on the map.
In some cases additional Z and M dimensions can also be specified to denote the altitude of the displayed data for example.
Let's see how to display certain extents on the map.
double y = 48.7;
double x = 2.3;
double span = 0.1;
ext.
SetBounds(x - span, y - span, 0.0, x + span, y + span, 0.0);
}
tkUnitsOfMeasure
The possible units of measure for the data being displaying on map.
Definition: Enumerations.cs:1397
Map component for visualization of vector, raster or grid data.
Definition: AxMap.cs:56
Represents a rectangle on the map.
Definition: Extents.cs:49
void SetBounds(double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)
Sets the bounds for the extents object.
Definition: Extents.cs:85
tkUnitsOfMeasure MapUnits
Gets or sets the units of measure for the map.
Definition: AxMap.cs:2622
Extents Extents
Gets or sets the extents of the map using an Extents object.
Definition: AxMap.cs:2426
MapWinGIS doesn't hold instances of Extents class for layers or map, but generates them on each client call. Therefore it's useless to try to change those extents in the way like this:
The following line is needed:
In case of data layers, like shapefiles or images, the extents are obtained by calculation, so the only way to alter them is to change the underlying data.
- Examples
- EditAttributes.cs, ImageLabels.cs, LabelSelection.cs, RemoveShape.cs, Segmentation.cs, SelectBox.cs, ShapefileToDrawingLayer.cs, ToolTip.cs, TrackCars.cs, and Tracking.cs.