Envelope Class |
Namespace: Esri.ArcGISRuntime.Geometry
The Envelope type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Envelope(MapPoint, MapPoint) |
Initializes a new instance of the Envelope class
from given diagonal corner points.
|
![]() ![]() | Envelope(MapPoint, Double, Double) |
Initializes a new instance of the Envelope class from a center point,
with a defined width and height.
|
![]() ![]() | Envelope(Double, Double, Double, Double) |
Initializes a new instance of the Envelope class
from given diagonal corner coordinates.
|
![]() | Envelope(MapPoint, Double, Double, Double) |
Initializes a new instance of the Envelope class from a center point,
with a defined width, height, and depth.
|
![]() ![]() | Envelope(Double, Double, Double, Double, SpatialReference) |
Initializes a new instance of the Envelope class
from given diagonal corner coordinates in the given SpatialReference.
|
![]() | Envelope(Double, Double, Double, Double, Double, Double) |
Initializes a new instance of the Envelope class based on the x, y, and z values.
|
![]() ![]() | Envelope(Double, Double, Double, Double, Double, Double, SpatialReference) |
Initializes a new instance of the Envelope class based on the x, y, and z values
in the given SpatialReference.
|
Name | Description | |
---|---|---|
![]() ![]() | Depth | Gets the depth (ZMax - ZMin) for this envelope. |
![]() | Dimension | Gets the number of dimensions for the geometry. (Overrides GeometryDimension.) |
![]() | Extent |
Gets the extent of this Envelope, which is the same as the Envelope itself.
(Overrides GeometryExtent.) |
![]() | GeometryType |
The geometry type (always Envelope).
(Overrides GeometryGeometryType.) |
![]() | HasCurves | Gets a value indicating whether the geometry has any curves. (Inherited from Geometry.) |
![]() | HasM |
Gets a value indicating whether this Envelope has M (measure) values.
(Overrides GeometryHasM.) |
![]() | HasZ |
Gets a value indicating if this Envelope has Z values.
(Overrides GeometryHasZ.) |
![]() ![]() | Height |
Gets the height of the Envelope (along Y-axis).
|
![]() | IsEmpty |
Gets a value indicating whether or not this Envelope is empty.
(Overrides GeometryIsEmpty.) |
![]() | MMax |
Gets maximum M (measure) value.
|
![]() | MMin |
Gets minimum M (measure) value.
|
![]() ![]() | SpatialReference | Gets the spatial reference of this geometry. (Inherited from Geometry.) |
![]() ![]() | Width |
Gets the width of this Envelope (along X-axis).
|
![]() ![]() | XMax |
Gets the max coordinate along X-axis (upper right corner).
|
![]() ![]() | XMin |
Gets the min coordinate along X-axis (lower left corner).
|
![]() ![]() | YMax |
Gets the max coordinate along Y-axis (upper right corner).
|
![]() ![]() | YMin |
Gets the min coordinate along Y-axis (lower left corner).
|
![]() ![]() | ZMax |
Gets the max coordinate along Z-axis.
|
![]() ![]() | ZMin |
Gets the min coordinate along Z-axis.
|
Name | Description | |
---|---|---|
![]() ![]() | CreateWithM(Double, Double, Double, Double, Double, Double) |
Creates an Envelope based on the given x, y, and m values.
|
![]() ![]() | CreateWithM(Double, Double, Double, Double, Double, Double, SpatialReference) |
Creates an Envelope based on the given x, y, and m values
in the given SpatialReference.
|
![]() ![]() | CreateWithM(Double, Double, Double, Double, Double, Double, Double, Double) |
Creates an Envelope based on the given x, y, z, and m values.
|
![]() ![]() | CreateWithM(Double, Double, Double, Double, Double, Double, Double, Double, SpatialReference) |
Creates an envelope based on the x, y, z and m values
in the given SpatialReference.
|
![]() | Equals | Checks if two geometries are approximately same, within some tolerance. (Inherited from Geometry.) |
![]() ![]() | GetCenter |
Gets the center of the Envelope.
|
![]() | IsEqual |
Compares two geometries for equality.
(Overrides GeometryIsEqual(Geometry).) |
![]() | ToJson | Converts this geometry into an ArcGIS JSON representation. (Inherited from Geometry.) |
![]() | ToString | (Overrides ObjectToString.) |
An envelope is defined by a pair of x,y coordinates representing the lower-left and upper-right vertices of a rectangular bounding-box. The vertices may optionally contain z coordinates and/or m (measure) values. An envelope is associated with a SpatialReference which specifies the coordinate system.
An envelope is typically used to represent the minimum bounding rectangle for a Geometry or to define a simple area of interest such as a Map's extent. Ordinarily, an envelope is a rectangle whose sides are oriented parallel to the x and y axes. These characteristics allow for simpler construction and manipulation of this object than is possible with a polygon.
An envelope may optionally have a Depth, in which case its geometry is that of a rectangular cuboid.
Envelopes are based upon the parent Geometry Class. The Geometry Class is immutable which means that you can not change its shape once it is created. If you need to modify an Envelope once it has been created, use the EnvelopeBuilder Class instead. The ToGeometry Method will provide you with the Envelope object.
WPF
Example Name: AddEncExchangeSet
Display nautical charts per the ENC specification.
// Copyright 2018 Esri. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. // You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific // language governing permissions and limitations under the License. using System; using ArcGISRuntime.Samples.Managers; using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Hydrography; using Esri.ArcGISRuntime.Mapping; using System.Collections.Generic; using System.Windows; namespace ArcGISRuntime.WPF.Samples.AddEncExchangeSet { [ArcGISRuntime.Samples.Shared.Attributes.Sample( name: "Add ENC exchange set", category: "Hydrography", description: "Display nautical charts per the ENC specification.", instructions: "Run the sample and view the ENC data. Pan and zoom around the map. Take note of the high level of detail in the data and the smooth rendering of the layer.", tags: new[] { "Data", "ENC", "hydrographic", "layers", "maritime", "nautical chart" })] [ArcGISRuntime.Samples.Shared.Attributes.OfflineData("9d2987a825c646468b3ce7512fb76e2d")] public partial class AddEncExchangeSet { public AddEncExchangeSet() { InitializeComponent(); // Create the UI, setup the control references and execute initialization Initialize(); } private async void Initialize() { // Initialize the map with an oceans basemap MyMapView.Map = new Map(Basemap.CreateOceans()); // Get the path to the ENC Exchange Set string encPath = DataManager.GetDataFolder("9d2987a825c646468b3ce7512fb76e2d", "ExchangeSetwithoutUpdates", "ENC_ROOT", "CATALOG.031"); // Create the Exchange Set // Note: this constructor takes an array of paths because so that update sets can be loaded alongside base data EncExchangeSet myEncExchangeSet = new EncExchangeSet(encPath); try { // Wait for the exchange set to load await myEncExchangeSet.LoadAsync(); // Store a list of data set extent's - will be used to zoom the mapview to the full extent of the Exchange Set List<Envelope> dataSetExtents = new List<Envelope>(); // Add each data set as a layer foreach (EncDataset myEncDataset in myEncExchangeSet.Datasets) { // Create the cell and layer EncLayer myEncLayer = new EncLayer(new EncCell(myEncDataset)); // Add the layer to the map MyMapView.Map.OperationalLayers.Add(myEncLayer); // Wait for the layer to load await myEncLayer.LoadAsync(); // Add the extent to the list of extents dataSetExtents.Add(myEncLayer.FullExtent); } // Use the geometry engine to compute the full extent of the ENC Exchange Set Envelope fullExtent = GeometryEngine.CombineExtents(dataSetExtents); // Set the viewpoint await MyMapView.SetViewpointAsync(new Viewpoint(fullExtent)); } catch (Exception e) { MessageBox.Show(e.ToString(), "Error"); } } } }
<UserControl x:Class="ArcGISRuntime.WPF.Samples.AddEncExchangeSet.AddEncExchangeSet" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <Grid> <esri:MapView x:Name="MyMapView"/> </Grid> </UserControl>
Hyperlink to Example | Description |
---|---|
AddEncExchangeSet | Display nautical charts per the ENC specification. |
AddGraphicsRenderer | A renderer allows you to change the style of all graphics in a graphics overlay by referencing a single symbol style. |
AddGraphicsWithSymbols | Use a symbol style to display a graphic on a graphics overlay. |
AnalyzeHotspots | Use a geoprocessing service and a set of features to identify statistically significant hot spots and cold spots. |
AnimateImageOverlay | Animate a series of images with an image overlay. |
AuthorMap | Create and save a map as an ArcGIS `PortalItem` (i.e. web map). |
BrowseWfsLayers | Browse a WFS service for layers and add them to the map. |
BufferList | Generate multiple individual buffers or a single unioned buffer around multiple points. |
ChangeBlendRenderer | Blend a hillshade with a raster by specifying the elevation data. The resulting raster looks similar to the original raster, but with some terrain shading, giving it a textured look. |
ChangeEncDisplaySettings | Configure the display of ENC content. |
ChangeFeatureLayerRenderer | Change the appearance of a feature layer with a renderer. |
ChangeStretchRenderer | Use a stretch renderer to enhance the visual contrast of raster data for analysis. |
ChangeSublayerRenderer | Apply a renderer to a sublayer. |
ChangeViewpoint | Set the map view to a new viewpoint. |
ClipGeometry | Clip a geometry with another geometry. |
ClosestFacility | Find a route to the closest facility from a location. |
ClosestFacilityStatic | Find routes from several locations to the respective closest facility. |
CreateFeatureCollectionLayer | Create a Feature Collection Layer from a Feature Collection Table, and add it to a map. |
CreateGeometries | Create simple geometry types. |
CustomDictionaryStyle | Use a custom dictionary style (.stylx) to symbolize features using a variety of attribute values. |
DensifyAndGeneralize | A multipart geometry can be densified by adding interpolated points at regular intervals. Generalizing multipart geometry simplifies it while preserving its general shape. Densifying a multipart geometry adds more vertices at regular intervals. |
DictionaryRendererGraphicsOverlay | This sample demonstrates applying a dictionary renderer to graphics, in order to display military symbology without the need for a feature table. |
DisplayKml | Display KML from a URL, portal item, or local KML file. |
DisplaySubtypeFeatureLayer | Displays a composite layer of all the subtype values in a feature class. |
DisplayUtilityAssociations | Create graphics for utility associations in a utility network. |
DisplayWfs | Display a layer from a WFS service, requesting only features for the current extent. |
EditAndSyncFeatures | Synchronize offline edits with a feature service. |
EditKmlGroundOverlay | Edit the values of a KML ground overlay. |
ExportTiles | Download tiles to a local tile cache file stored on the device. |
FeatureLayerGeodatabase | Display features from a local geodatabase. |
FeatureLayerQuery | Find features in a feature table which match an SQL query. |
FeatureLayerSelection | Select features in a feature layer. |
FeatureLayerShapefile | Open a shapefile stored on the device and display it as a feature layer with default symbology. |
FindAddress | Find the location for an address. |
FindPlace | Find places of interest near a location or within a specific area. |
FindRoute | Display directions for a route between two points. |
FindServiceAreasForMultipleFacilities | Find the service areas of several facilities from a feature service. |
GenerateGeodatabase | Generate a local geodatabase from an online feature service. |
GenerateOfflineMap | Take a web map offline. |
GenerateOfflineMapWithOverrides | Take a web map offline with additional options for each layer. |
GeodatabaseTransactions | Use transactions to manage how changes are committed to a geodatabase. |
GroupLayers | Group a collection of layers together and toggle their visibility as a group. |
IdentifyKmlFeatures | Show a callout with formatted content for a KML feature. |
IdentifyRasterCell | Get the cell value of a local raster at the tapped location and display the result in a callout. |
ListKmlContents | List the contents of a KML file. |
ListTransformations | Get a list of suitable transformations for projecting a geometry between two spatial references with different horizontal datums. |
LocalServerFeatureLayer | Start a local feature service and display its features in a map. |
LocalServerGeoprocessing | Create contour lines from local raster data using a local geoprocessing package `.gpk` and the contour geoprocessing tool. |
LocalServerMapImageLayer | Start the Local Server and Local Map Service, create an ArcGIS Map Image Layer from the Local Map Service, and add it to a map. |
MapImageLayerTables | Find features in a spatial table related to features in a non-spatial table. |
NearestVertex | Find the closest vertex and coordinate of a geometry to a point. |
OfflineBasemapByReference | Use the `OfflineMapTask` to take a web map offline, but instead of downloading an online basemap, use one which is already on the device. |
OfflineGeocode | Geocode addresses to locations and reverse geocode locations to addresses offline. |
OfflineRouting | Solve a route on-the-fly using offline data. |
Project | Project a point from one spatial reference to another. |
QueryFeatureCountAndExtent | Zoom to features matching a query and count the features in the current visible extent. |
RasterColormapRenderer | Apply a colormap renderer to a raster. |
RasterHillshade | Use a hillshade renderer on a raster. |
RasterLayerFile | Create and use a raster layer made from a local raster file. |
RasterLayerGeoPackage | Display a raster contained in a GeoPackage. |
RasterLayerRasterFunction | Load a raster from a service, then apply a function to it. |
RasterRenderingRule | Display a raster on a map and apply different rendering rules to that raster. |
RasterRgbRenderer | Apply an RGB renderer to a raster layer to enhance feature visibility. |
ReadShapefileMetadata | Read a shapefile and display its metadata. |
RenderPictureMarkers | Use pictures for markers. |
SceneLayerSelection | Identify features in a scene to select. |
SceneLayerUrl | Display an ArcGIS scene layer from a URL. |
SelectEncFeatures | Select features in an ENC layer. |
ServiceFeatureTableCache | Display a feature layer from a service using the **on interaction cache** feature request mode. |
ServiceFeatureTableNoCache | Display a feature layer from a service using the **no cache** feature request mode. |
SetInitialMapArea | Display the map at an initial viewpoint representing a bounding geometry. |
ShowPopup | Show predefined popups from a web map. |
SimpleRenderers | Display common symbols for all graphics in a graphics overlay with a renderer. |
StatisticalQuery | Query a table to get aggregated statistics back for a specific field. |
StyleWmsLayer | Change the style of a Web Map Service (WMS) layer. |
TraceUtilityNetwork | Discover connected features in a utility network using connected, subnetwork, upstream, and downstream traces. |
ViewPointCloudDataOffline | Display local 3D point cloud data. |
WfsXmlQuery | Load a WFS feature table using an XML query. |
WmsIdentify | Identify features in a WMS layer and display the associated popup content. |
WMSLayerUrl | Display a WMS layer using a WMS service URL. |