More

How to properly initialize ArcMap data frame created with IMaps.Create method?

How to properly initialize ArcMap data frame created with IMaps.Create method?


In a custom ArcMap command implemented in .NET C# I create a new data frame this way:

// mxDocument is IMxDocument IMap newMap = mxDocument.Maps.Create(); // create new data frame newMap.Name = "I can name it as I want: " + Guid.NewGuid(); mxDocument.Maps.Add(newMap); mxDocument.ActiveView = (IActiveView)newMap; // activate new data frame mxDocument.UpdateContents();

However, compared to the data frame created with standard ArcMap means, there is something wrong with my data frame:

  1. ArcMap doesn't show property page for the data frame (right click - Properties)
  2. It's not possible to remove my data frame from ArcMap (right click - Remove)

Do I have to add some initialization code for IMap created with IMaps.Create (IMaps2.Create)?

The help for the method is quite laconic: "Creates a new map"…

I use ArcGIS version 10.2.2.


This code snippet should add a new dataframe:

IApplication app = default(IApplication); IMxDocument pMxDoc = default(IMxDocument); app = (IApplication)Hook; pMxDoc = (IMxDocument)My.ArcMap.Application.Document; //Create a new map IMap pMap = default(IMap); pMap = new Map(); pMap.Name = "My Map2"; //Create a new MapFrame and associate map with it IMapFrame pMapFrame = default(IMapFrame); pMapFrame = new MapFrame(); pMapFrame.Map = pMap; //Set the position of the new map frame IElement pElement = default(IElement); IEnvelope pEnv = default(IEnvelope); pElement = pMapFrame; pEnv = new Envelope(); pEnv.PutCoords(0, 0, 5, 5); pElement.Geometry = pEnv; //Add mapframe to the layout IGraphicsContainer pGraphicsContainer = default(IGraphicsContainer); pGraphicsContainer = pMxDoc.PageLayout; pGraphicsContainer.AddElement(pMapFrame, 0); //Make the newly added map the focus map IActiveView pActiveView = default(IActiveView); pActiveView = pMxDoc.ActiveView; if (pActiveView is IPageLayout) { pActiveView.FocusMap = pMap; } else { pMxDoc.ActiveView = pMap; } //Refresh ActiveView and TOC pActiveView.Refresh(); pMxDoc.CurrentContentsView.Refresh(0);

Sourced from How to create a new map


Creating grids for panels that cross the 180° meridian

Every chart has coordinate information displayed using borders, grids, and/or graticules, indicating to its users the coordinates of where it's located in the world. The grid is also important to navigation, assisting mariners in determining direction and distances traveled. Grids, graticules, (linear) scaled borders, and neatlines are created with grids and graticules tools.

Typically, features are split when crossing the 180th meridian. However, to create grids that span the 180th meridian, a single area of interest feature with a single (part) geometry is required.

ArcGIS Maritime comes with preconfigured grids based on the IHO's INT2 standard. These preconfigured grids are delivered as XML files in the following locations:

  • For 32-bit Windows operating systems—<Installation location>Program FilesArcGISMaritimeChartingDesktop 10.8.1 ChartingCartographyGridDefinitions
  • For 64-bit Windows operating systems—<Installation location>Program Files(x86)ArcGISMaritimeChartingDesktop 10.8.1 ChartingCartographyGridDefinitions

The following INT2 grids are provided:

Preconfigured grids for the INT2 standard

Greater than or equal to 1:10,000

E grid for large-scale plans

Neatline and geographic grid system for E-scale plans

Neatline and calibrated border for 1:30,000- to 1:100,000-scale plans

Neatline and calibrated border for 1:100,000- to 1:200,000-scale plans

Neatline and calibrated border for 1:200,000- to 1:500,000-scale plans

Neatline and calibrated border for 1:500,000- to 1:1,500,000-scale plans

Neatline and calibrated border for 1:1,500,000- to 1:2,250,000-scale plans

Neatline and calibrated border for 1:2,250,000- to 1: 4,750,000-scale plans

Neatline and calibrated border for 1:4,750,000-scale plans and above

Noncalibrated border (tick marks only)

Each grid is created independently using the Make Grids And Graticules Layer geoprocessing tool using a data frame that has the same geographic coordinate system (ensuring that any transformations that are required have been set before the grid is created).


How to properly initialize ArcMap data frame created with IMaps.Create method? - Geographic Information Systems

ArcMap is the module for interacting with map data. In ArcMap you can display, query, classify, edit, and analyze spatial data. The ArcMap data frame can contain geographic features, such as points, lines, polygons, and raster layers. Most of the time you will be interacting with ArcMap. You alter the symbology of data within the ArcMap module. In addition, ArcMap is used to create printable layouts.

The ArcMap interface contains 2 fundamental parts (other than the GUI):

The Table of Contents is on the left, and contains a list of the current layers in the data frame, along with a legend naming each layer displaying the layers' symbology. A layer is a dataset that represents a single feature class (e.g., roads, streams, forest stands). Each layer that is loaded will be listed in the Table of Contents.

To the left of each layer's name is a check box. To control the drawing of layers, check the boxes on or off.

Layers are drawn in order from bottom to top. The topmost layer will obscure any data which have already been drawn, so be careful of the order of the layers in the Table of Contents. The drawing order can be altered by click-and-dragging the layer up or down in the list.

Active layers appear with a dark rectangle around the name in the Table of Contents. Certain operations act on the active layers. To make a layer active, single click on the layer's name in the Table of Contents. To deactivate a layer, use the <CTRL> key and click the name of an active layer. In the image below, the popoint and ponet layers are active, and the aepoint and rdline layers are inactive. It is possible to have more than one layer active at a time (use the <CTRL> key when clicking on layer names to activate more than one layer at a time).

To open the properties for the layer, double click on the layer's name (or right-click and select Properties).

The Map Display is on the right hand side of the view document window, and contains a planimetric view of the geographic map data within the view. One or more data frames may exist for each map document. Data frames are used to group layers together. This view document has 3 data frames (Layers, States, and stands). The currently active data frame is called Layers. Within this data frame there are 4 layers: aepoint, popoint, rdline, and ponet. Only 3 layers are turned on (their check boxes are checked, so they are being displayed) popoint is not being displayed.

Note the important difference between being active and being displayed. The layer popoint is active but is not being displayed. The layer aepoint is being displayed but is not active. You will save yourself a lot of confusion and misery if you become comfortable with this concept early on!

Layer attribute tables can be opened, viewed, edited, and related within ArcMap. To open a layer's table, right click the layer name in the table of contents and select Open Attribute Table. Below is the table for the airport point layer. (Tables can be previewed in ArcCatalog, as shown below, but values cannot be edited.)


Here is an image showing a very simple map composition in ArcMap:


We will spend a substantial amount of time during the rest of the quarter using ArcMap for display, query, and analysis of geospatial data.

ArcPublisher & ArcReader

If you want to share maps with other users who do not have ArcGIS installed, it is possible to publish a read-only map document, optionally along with the associated data. ArcPublisher is an extension supplied with ArcGIS Desktop, and runs out of ArcMap.

Here is an image showing a published map in ArcReader. Note the difference in the GUI between this and ArcMap. However, all symbology has been preserved.

Even the layout is included in the published map document:

We will not be spending much time this term publishing maps, but feel free to explore this on your own.

GIS is likely to be the most data-intensive computing application you will ever use. For this reason it is imperative that you become comfortable with files and file structures. ArcCatalog is the ArcMap module used for previewing and managing data. ArcCatalog uses a hierarchical file structure, with a number of different containers (also known as folders or directories). Within each container may be other containers or spatial data files, tables, or other files.

Below you can see (from the Location as well as the Title bar) the container is C:usersphurvitzhtdocsesrm250cfr250_data_rawpackgispackgis.mdbforest and the dataset being browsed is stands. The Contents tab shows some simple information about the dataset, such as its name, type, size, number of features, projection, etc.

The Preview tab allows you to preview the layer's geography and attribute table:

The Metadata tab allows you to find out other information about the dataset. Metadata may contain very little or quite a lot of detailed information about the dataset.

Because data management is such an important issue, we will be using ArcCatalog throughout the quarter to manage data.

ArcToolbox contains a number of geoprocessing tools. Shown here undocked, you can see a number of different toolboxes and within each toolbox one or more toolsets. Individual tools can be located within toolboxes or within toolsets. Here, you can see there is also a hierarchical organization of toolboxes, toolsets, and tools. The top-level is ArcToolbox, but within ArcToolbox, you see 3D Analyst Tools and Analysis Tools. Within the Analysis Tools toolbox, there are 4 toolsets (Extract, Overlay, Proximity, and Statistics). Tools and toolsets are grouped together based on common functionality. For example, each one of the 6 individual tools for Overlay are grouped together.

Tools are opened by double-clicking the tool. Here is the Clip tool dialog:

Tool interfaces are built so that you select all necessary parameters for the tool. The parameters may all be shown on one dialog, or if the tool is complex, there may be several successive dialogs run like "wizards," which allow you to go forward and backward in the work flow.

Most tools act are run using datasets present in your map. The dropdown controls in the dialog contain valid datasets for each tool parameter. It is easy to populate the parameters by simply clicking the appropriate layers and then clicking the OK button.

The biggest reason for using a GIS is to perform spatial analysis. As the term progresses, more time will be spent on various geoprocessing tasks.

ArcScene allows you to view data in 3 dimensions. This is used for visualization and communication purposes. In addition to 3D viewing, there are a number of analytical methods in the 3D Analyst Toolbar that act upon 3 dimensional and surface data.

Here is a simple display of a digital elevation model in 3D.

. and a digital orthophoto draped over the same surface model:

ArcGlobe is similar to the ArcScene, but it allows the user to load datasets spanning part or all of the world, and to visualize the relationships of one place to another. Here are a few images of ArcGlobe's interface.

We will cover the use of 3D display in our module on 3-D and Surface Modeling.


Re: How to “clear” the coordinate system of the “Map” to get it to “unknown” in ArcGIS Pro,

This issue was logged as BUG-000114029 in May 2018, and has been marked as "Not in Current Product Plan by Esri Development. However, effective with version 2.7 of ArcGIS Pro, it is possible to add data to the Pro project that does not have a projection defined. In earlier versions, a default coordinate system was assigned to the data - either GCS_WGS_1984, or WGS_1984_Web_Mercator_Auxiliary_Sphere - which were wrong in most cases.

The extent of the data which has the unknown projection definition can be viewed in the Catalog Pane in ArcGIS Pro, and with some preliminary research about coordinate extents for the area, in commonly used coordinate systems for the area, it is usually pretty easy to figure out what projection the data was created in. If nothing matches, i.e. CAD data, it may be necessary to create a custom projection file to align the data.

The fundamental issue to remember is that Project on the Fly works. If the data has a projection defined, and you have set the appropriate datum transformation, but the data does not show up in the correct location, the assigned projection is wrong. Clear that projection definition, and follow instructions in Knowledge article 000007880 and related articles to identify the coordinate system, or create a custom projection to align the data.


The geographic coordinate systems warning

The geographic coordinate systems warning appears whenever data you are adding uses a different geographic coordinate system than the one used in the map or globe you are adding it into. Why is this information important? ArcMap and ArcGlobe can convert data between coordinate systems. This is often called projecting the data. If the source and target coordinate system do not use the same geographic coordinate system, data can be shifted anywhere from a few meters to hundreds of meters from the correct locations.

The table lists any data sources that you are adding and their geographic coordinate systems. The coordinate system of the data or the map/globe may be a projected coordinate system like Universal Transverse Mercator (UTM). Each projected coordinate system is based on a geographic one. The dialog box retrieves the geographic coordinate system information from the data sources and the map or globe.

Converting correctly between two geographic coordinate systems requires a geographic, or datum, transformation. ArcMap doesn't automatically choose a transformation for you, because there are often multiple transformations that could be applied between two geographic coordinate systems. Transformations can differ by method and parameters that affect their accuracy, or by area of use. It is up to you to decide which transformation is most appropriate for your data and your purposes.

There is one exception to this rule where ArcMap will automatically apply a transformation: If the two geographic coordinate systems are NAD 1927 and NAD 1983 and the data is determined by the application to be in the lower 48 U.S. states, the NADCON transformation is used automatically.

The Transformations button will open the Geographic Coordinate Systems Transformations dialog box, where you can see what already defined transformations are available or define a custom or compound transformation. The transformations in the drop-down list are ordered with the best option first. Or, if you prefer, you can access the Geographic Coordinate Systems Transformations dialog box via the data frame's Coordinate Systems tab.

This Geographic Coordinate Systems Warning dialog box will not appear if you add data later that does not have the map or globe's coordinate system if you have set a geographic transformation. If the transformation is between the same coordinate systems, it will treat the set one as the default.


Adding latitude and longitude to ArcMap

Adding Excel Lat Long Coordinates into ArcGIS, coordinates, you will have to prepare these columns in decimal degrees. Once you add this line feature class to your map you can write a definition query to select which lines of latitude and longitude you want to display (10, 15, 20, or 30 degree lines). Formerly a Mapping Center Ask a Cartographer Q & A. Commenting is not enabled for this article.

Adding x,y coordinate data as a layer—Help, , right-click the “Layers” data frame in the table of contents. To add a table of x,y coordinates to your map, globe, or scene, the table must contain two fields: one for the x-coordinate and one for the y-coordinate. The values in the fields may represent any coordinate system and units such as latitude and longitude or meters. A field for the z-coordinates that enables 3D geometry is optional.

How To: Calculate latitude and longitude for point , The values in the fields may represent any coordinate system and units such as latitude and longitude or meters. A field for the z-coordinates that enables 3D Open the attribute table of the point feature class in ArcMap. Do not start an edit session. Click the Table Options drop-down button, and select Add Field. In the Add Field window, name the field Lat (for latitude), with type Double.


A block is usually a multiple of the operating system block size to facilitate efficient disk I/O. The default block size is specified by the Oracle initiali.

Excel Chapter 10: End-of-Chapter Quiz 1) Match each term with the correct definition (15 points) A group of commands that enable you to bring data from an A.

What is CSS? CSS stands for Cascading Style Sheet. It allows you to manipulate the appearance and layout of the HTML document without compromising its struct.

The Lens Equation [1] This equation was used in the analysis to find out the focal point of the lens used. This equation can be derived either by using geome.

Therefore, most of the data obtained from the questionnaire are ordinal data, so that in analyzing ordinal data required interval data. To solve this problem.

Panorama Types Spatial Panoramas Panoramic image stitching based on image mosaicing has got an extensive interest with several commercial software pac.

Each zone is constructed as virtual hierarchical that are geographic -specific. Each zone has a pre-defined number of nodes and a coordinator 〖C(i)〗_11^1to t.

Most recently, while at Xerox PARC, John managed the market strategy team in charge of designing and executing go-to-market strategies for a portfolio of 80 .

5) Where a1, a2, a3 are the axes of the crystal in real space and b1 is the axis that corresponds to a1 in reciprocal space In reciprocal space, the interpl.

◦Application launches a separate window for login - OneClick cannot log into some applications that launch separate windows, so you will need to manually log.


I. Setting up your Work Environment

  • Log onto a WinAthena PC
  • Launch a web browser, access the class webpage, and find the link for the current lab: http://mit.edu/11.188/www/labs/lab3/
  • Insure that you have access to the class data locker (Z:afsathena.mit.educourse1111.188data) as explained in earlier lab exercises. (If drive Z: is not listed in Windows Explorer as an available drive under 'Computer' you can usually fix the problem by logging out and loggin right back in again (so delays in accessing the required servers do not lead to 'timeouts'). In this exercise, we will assume that the class data locker has been attached as drive M (but you may navigate to the class locker directly on drive Z:).
  • Most of the shapefiles that you will need for this exercise are the ones from Lab #2 that were zipped into 'cambridge_shapefiles.zip' in the class data locker (M:datacambridge_shapefiles.zip). Once again, copy and extract this zipped file into C: emp so the shapefiles are available on a writeable, local disk drive. You will need one more shapefile, middle_county.shp, for the lab exercise. This shapefile can be found in M:datalab3_county. Try copying this shapefile into C: empcambridge_shapefiles using ArcCatalog (either launched separately or via Windows/ArcCatalog within ArcMap). Windows Explorer can also be used to copy the shapefile, but you must be sure to copy all six files that start with the name 'middle_county' in order to copy the entire shapefile.
  • Start ArcMap.
    • Start ArcMap by double-clicking on C: empcambridge_shapefiles11.188_lab2_web.mxd, or by starting a blank ArcMap session and adding the needed shapefiles. However, if you start with a blank ArcMap, the MassGIS and ESRI web services will not be available to provide useful background images.
    • Check the location of your 'scratch drive': When ArcMap needs temporary disk space for various calculations, it writes data into a 'scratch' workspace. The deafult location is under your portion of C:Documents and Settings. On personal machines, this is part of the local drive C:. However, on MIT lab machines, the default space is relocated to your network locker (on drive H:). This setting will work but can lead to slow performance. In Lab #1, we reset our default scratch space (including the default file geodatabase, scratch.gdb) to be in c: emp. On WinAthena machines, we suggest that you reset your 'scratch' space to be C: emp (or whatever other local portion of drive C: or drive D: that is writeable). You can reset the scratch drive by choosing the GeoProcessing menu option, and then the Environments settings.: Finally, click the Workspace entry and you can enter C: emp into the Scratch Workspace box.
    • Select File / Map-document-properties from the main ArcMap menu and check the location of the Default Geodatabase. It should be C: empscratch.gdb if, in Lab #1, you managed to successfully reset your default geodatabase to be c: empscratch.gdb. If not, you can redo the part of the instructions in Lab #1 that used ArcCatalog to create a new file geodatabase called scratch.gdb in c: emp. Changing the location of the default file geodatabase will only affect the performance of ArcMap, not the results. For this lab, the files are small enough that performance will not suffer much if the default geodatabase remains on your H: drive. But you will want to get used to checking its location and remembering how to reset it so that you know how to change the defaults to local drives when we start using larger datasets.

    Compatibilidade (Data created in QGIS does not align in ArcMap)

    Criei um percurso no QGis usando OpenLayer plugin Google Streets, e agora que tenho que trabalhar no ArcGis não consigo fazer com que os pontos caiam nos lugares certos.

    Estou usando ArcBrutile google roads no ArcGis.

    Subject was edited by: Timothy Hales

    by TimothyHales

    Google Translation: I created a route in QGIS using OpenLayer Google Streets plugin, and now I have to work in ArcGIS can not make the points fall in the right places .

    I'm using google ArcBrutile roads in ArcGIS .

    What coordinate system did you create the streets layer in QGIS? What coordinate system is your map in ArcGIS?

    I'm using camacupa 33S. is the system we use in Angola, Africa.

    by TimothyHales

    Camacupa 33S is UTM, so there should not be a transformation issue. Could you start a new ArcMap sessions, add your points layer first, and then add the other reference data?

    by NeilAyres

    It will indeed be a transformation issue. The coordinate system of the line (UTM 33S) has nothing to do with the underlying GCS source of the data.

    I am surprised that QGis makes such a good fit! But I do suspect that there is something about the original data (how was this line acquired?), and the coordinate system of the ArcMap data frame.

    Was the correct transformation selected here?

    Camacupa is a tricky one. I researched this many moons ago. All the available transformations between Camacupa & WGS84 have been calculated by the oil industry and are for specific offshore oil concessions. Back then there were no valid transformations for onshore Angola.

    I would like to hear from Miguel if this situation has now been rectified.

    Na verdade, será uma questão de transformação. O sistema de coordenadas da linha ( UTM 33S ) não tem nada a ver com a fonte subjacente GCS dos dados.

    Estou surpreso que qgis faz um bom ajuste , tais! Mas eu suspeito que há algo sobre os dados originais ( como foi esta linha adquirido? ), Eo sistema do quadro de dados do ArcMap coordenadas.

    Foi a transformação correta selecionada aqui?

    Camacupa é um assunto delicado . Eu pesquisei isso muitas luas atrás . Todas as transformações disponíveis entre Camacupa & WGS84 foram calculados pela indústria do petróleo e são para concessões específicas de petróleo offshore. Naquela época não havia transformações válidos para onshore Angola.


    Indiana Spatial Data Portal

    The Indiana Spatial Data Portal (ISDP) provides access to more than 30 terabytes of Indiana geospatial data. Most datasets are available to the public for download and have no use restrictions. Indiana University’s (IU) high performance networks and computing infrastructure support the ISDP which archives and provides web access to imagery provided by data   partners   within and outside IU. To learn more about discovering, downloading and viewing data from the ISDP, see the ISDP tutorials.

    Available statewide datasets include aerial photos, topographic maps, LiDAR and elevation data, and Sanborn historic maps. In addition, the ISDP hosts several local datasets for Allen, Bartholomew, Boone, Dearborn, Gibson, Hamilton, Hancock, Hendricks, Johnson, Marion, Monroe, Morgan, Posey, Shelby and Wayne Counties.

    This web site connects to Indiana University's   Scholarly Data Archive   (SDA) which provides long-term, disaster-tolerant data archival and distribution capabilities to hundreds of terabytes of IU data. The SDA archives data on tapes. When downloading files please be aware that you may experience a short delay (20 seconds to 1 minute) before the download begins. During this time a robotic system is locating and mounting a tape and transferring your file from tape to spinning disk.


    Watch the video: Creating and using multiple data frames in ArcMAP