Questions tagged [data-frame]

A map element that defines display properties for one or more layers in ArcMap.

Filter by
Sorted by
Tagged with
-1
votes
1answer
300 views

What is a simple script that can change the data frame name in an MXD? [closed]

I've got about 70 MXDs that need the top data frame name (there are multiple data frames within the MXD, I need to adjust the top data frame) changed/replaced. This is a task that may need to be ...
1
vote
1answer
55 views

Exporting inset map as shapefile from ArcGIS for Desktop?

I learned how to set the inset map in the data frame properties. I would like to export a permanent inset map layer or shapefile when I finish my map. What is best way to do it or is there any ...
3
votes
1answer
2k views

Legend from Multiple Data Frames

I have a map containing multiple data frames, the continental US, Alaska, Hawaii, PR, and Guam. These data frames contain different symbology which I would like displayed in a legend. Currently, ...
0
votes
1answer
116 views

Finding lat/lon point in coord polygon

I wrote a function to determine which ith polygon with coordinates contains a given lon/lat point, using the polygons from the tz_world.shp file. I pass in lon = -77, lat = 42, which is in New York ...
0
votes
1answer
180 views

What size of activeDataFrame? [closed]

I want to write a script in Python for ArcGIS to search for the size of an activeDataFrame (DataFrame) in meters (scale)?
0
votes
2answers
258 views

Arcpy fails to refresh page layout after changing the definitionQuery of a layer

I am trying to automate an export of map images in JPEG format. My script creates the map and exports it, but the export does not honor the changes made to the definitionQuery of the layer in the map (...
2
votes
2answers
353 views

Display extent indicators in the legend?

Can you link the data frame extent indicator box with your legend so that the legend displays a symbol and description representing the box?
1
vote
1answer
884 views

How to deal with two dimensional lat and lon variables in a NetCDF file in R?

I'm trying to convert a NetCDF file to a dataframe in R using the RNetCDF package. The NetCDF file is very different from what I have experience with, in that the lat and lon values each have two ...
1
vote
1answer
566 views

How to assign the attributes of the largest overlapping polygon area to each overlapping gridcell?

I am new to R, and I am trying to use it to calculate the areas of polygons that overlap with each gridcell, in order to assign the attributes of the largest overlapping polygon area to the ...
1
vote
1answer
2k views

How to manually assign new names to attributes in a spatial data frame column with NA values

Data can be found here (Admin 1- States and Provinces, first download button): http://www.naturalearthdata.com/downloads/10m-cultural-vectors/ I have a shapefile of the world that I'll be pulling ...
0
votes
3answers
493 views

How to add two dataframe columns of city and state names to form single city-state column for geocoding in R? [closed]

I tried to search for an answer to this, but I couldn't seem to find the right search terms, so I decided to spell it out quite explicitly. I have a data frame with separate columns for cities, ...
0
votes
1answer
57 views

Importing non-geocoded jpeg into active window of ArcMap Data frame?

Currently when we draw a new subdivision into our GIS, we snip a .jpeg of the platted subdivision and add it to ArcMap. The un-referenced jpeg is simply dropped out in the middle of nowhere and we ...
8
votes
2answers
4k views

How to join a table to a shapefile with non-matching IDs and names (similar strings)?

I'm having an annoying problem that I'm trying to find an automated solution for. The shorthand version is that I have a shapefile and a table of created data for regions within countries. The created ...
0
votes
0answers
23 views

Single Time Slider for Multiple Data Frames--ArcMap Desktop 10.3 [duplicate]

This question has been asked before, but never really answered: Is it possible to have a single time slider control that animates over multiple data frames? Reason being, I have one main map and 4 ...
4
votes
1answer
571 views

How to pull a shapefile into R from PostGIS database (in Windows)?

I'm currently working on pulling data from a PostGIS database for the first time to map in R and need some help. The database contains a shapefile of countries/regions of the world. I am able to pull ...
2
votes
1answer
3k views

Error when trying to subset a vector to a dataframe

I'm not sure if I've used the correct terminology in my title, so please forgive me if that doesn't entirely make sense. For the sake of reproducing my example, I've created a dummy example. As usual,...
4
votes
1answer
233 views

Linking Data Frames with Different Coordinate Systems

I have a problem that I am hoping might have multiple solutions. I am working with research data that was collected on an arbitrary grid, with units in m, datum point of 1000E, 1000N. The grid is ...
0
votes
0answers
68 views

Remove layers in sub folders using python- path orientation

Expanding on my previous question Remove layers using python- path orientation, i try to remove layers from mxd's (in ArcMap 10.3, Python 2.7.8), that don't appear in the layout view. The layers ...
3
votes
1answer
220 views

Referencing Dataframe with ArcPy in Geoprocessing Service?

I have a geoprocessing service that was successfully published to our Server instance. I'm using 10.3 which means we could not publish unless it was successfully run as a tool in ArcMap. But now when ...
0
votes
1answer
233 views

Is there a way to turn a data frame off in ArcMap 10.2?

I have an mxd with three data frames. I've written a python script that loops through a list of user-specified coordinates and scales for each data frame before exporting the mxd as a pdf. Is there a ...
0
votes
0answers
895 views

Extracting multiple values from list and storing them in data frame using R?

I have a list of 3 SpatialPolygonsDataFrames. Every element has a number which is the perimeter. I want through a loop to store the numbers into one cell of a data frame like: 154,526,442. I tried to ...
3
votes
1answer
110 views

Two rows of data.frame for one polygon

I am new in R and I am facing a problem. I have a list with many SpatialPolygonsDataFrames. Some of them are like this example This is a SpatialPolygonsDataFrame. My "problem" is that the data.frame ...
3
votes
1answer
1k views

What is faster - a matrix, raster or a dataframe?

I have rasters over which I am performing mathematical operations. For example, where I need to calculate flow distance or distance between two grid points. What format is generally considered faster ...
1
vote
2answers
330 views

Clipping a SpatialPoygonsDataFrame to another SpatialPolygonsDataFrame

How do I restrict a SpatialPolygonsDataFrame so that none of the polygons lie outside of an "underlying" SpatialPolygonsDataFrame? The application I have in mind involves Voronoi Polygons a la Carson ...
3
votes
3answers
1k views

Data driven pages extent

I use data driven pages to produce several maps. In the end product, all maps should show point data on a Country of europe. So far the country is shifting around each time I change the data shown in ...
7
votes
2answers
545 views

Converting Map Coordinates to Layout Coordinates in rotated Dataframe?

I am trying to convert Map X and Y coordinates to corresponding Layout coordinates in a rotated dataframe. The code found in this answer to Convert point XY to page units XY using arcpy? works fine, ...
2
votes
1answer
795 views

Creating polygon from visible map extent using ModelBuilder?

Is there a way to create a polygon using the visible extent of a data frame in ModelBuilder? I'm using ArcGIS Desktop 10.0.
3
votes
3answers
6k views

Copy and paste of dataframe in ArcMap table of contents?

I am new to ArcGis and I am currently taking a course. In one of the exercises Im supposed to copy a dataframe from the table of contents in ArcMap ( in data view) back into the table of contents so ...
0
votes
1answer
1k views

Getting SpatialPolygonDataFrame from gIntersection{rgeos] with sub-area as attribute in R?

I am using gIntersection (package rgeos) to intersect a polygon shapefile containing 20 buffers zones, with another polygon shapefile containing "ground occupation mode (GOM)" (an area divided in ...
0
votes
0answers
450 views

Limit the editing extent of a feature class by area in ArcMap

Using ArcMap (Advanced), if I have a dataframe set to British National Grid and I add a feature class to the map document that is also set to BNG, and I try to draw outside the extent of BNG I will ...
12
votes
2answers
2k views

Point overplotting on maps in R (e.g. with ggplot2) - how to push points to the side, mark original positions, combine close-by points …?

I've got a database containing languages, their longitudes and latitudes and a feature value (either category 1, category 2 or both - in the plot these are marked red, blue and green respectively). ...
2
votes
1answer
2k views

Why are some tools on Tools toolbar not working in ArcMap?

I am using ArcGIS 10.2.2 for Desktop, i've managed my map in the layout view, everything done, i was fine with the outcome, exported into a pdf file, then switched back to data view. Now i am ...
5
votes
1answer
456 views

Changing the projection transformation for a feature class after adding it to an mxd

Is there a way to select a different projection transformation after you've added a feature class to an mxd? I have a pretty complex mxd set up to use as a map service where the original data is in ...
4
votes
1answer
3k views

Getting index of active data frame in ArcPy?

I am a little surprised to see that there seems to be no way to get the index of the active data frame in ArcPy, or did I miss something? For example, what if you want to add a tool’s output to the ...
0
votes
2answers
307 views

How to remove layers that are not in visible df extent

I am working on ArcMap 10.3 and I have a map with 50 layers in it. I am trying to check if layers are in a data frame. Unlike How to check if layers in a dataframe with Arcpy, I want to define the ...
2
votes
2answers
61 views

Limiting imagery displayed to non-rectangular area using ArcGIS Desktop?

I have a layer that shows some imagery in Ontario. I would like to get rid of the imagery that I don't need, because I only need it to be in 6 "squares" that I have. Is there a way to restrict the ...
0
votes
1answer
148 views

Script to batch export pdf causing incorrect inset map [closed]

I have written a python script to batch export several pdfs from a single mxd, switching layers on/off and naming the output pdf based on values supplied by the user in a csv file. We import the ...
1
vote
0answers
138 views

Adding layer to MXD from different SDE slows down ArcPy script

My python script looks at layers in an MXD, then does a couple of clip and measure operations and generates a PDF. It works accurately and quickly (0.5-3 seconds) when all the layers in the MXD are ...
1
vote
2answers
977 views

Mirror two data frames

Is it possible to link two data frames so that they mirror each other? I know I can set the extent of one data frame to that of another data frame, but then you can only pan/zoom in the parent frame. ...
1
vote
1answer
712 views

Add CAD feature class to Arcgis using arcpy [closed]

I'm trying to add a CAD layer (point, polyline, annotation...etc) into ArcMap by python code, i'm using Arcgis 10.1, IDLE(Python 2.7), I faced many codes but they all gives errors, so i'm blocked ...
2
votes
1answer
962 views

Generate dynamic XY coordinate labels for dataframe corners in ArcGIS layout

I need to label the four corners of a dataframe as shown in the image. Can this be done with dynamic text scripts?
0
votes
1answer
60 views

Data frame index

Can anyone know how to make index ,in arcpy, for a several data frame in one mxd? That question related to this question : Insert layer file to specific data frame
2
votes
0answers
70 views

QGIS print composer layout with several data frames: is it possible? [duplicate]

I have to create a several data frame print composer layout: is there a command or a plugin in QGIS 2.4.0 Chugiak that allows to insert several data frame? I dont't know if QGIS can manage more than ...
2
votes
3answers
1k views

Remove layer file from MXDs with multiple data frames using ArcPy?

I have a bunch of mxd's and I want to remove layer file from them. Each mxd has 2 and more data frame. I don't know why it does not remove. I'm trying this code: import arcpy,os,sys,string import ...
4
votes
1answer
1k views

Clearing data frame projection of current mxd using ArcPy?

I am required to open a bunch (50 per week) of mxd's and 'Clear' the Coordinate system from the data-frame to make sure my students have all of their data projected in the same (correct) Coordinate ...
4
votes
1answer
243 views

add-in to open automatically "data frame properties

How can created an ArcMap Python add-in using ArcGIS 10.1 to open automatically data frame properties And change the background color of another?
5
votes
3answers
10k views

Convert shapefile with lists to data frame in R

I would like to ask some help for converting a shapefile to data frame. I downloaded data related to roads from Natural Earth. I imported the shapefile using shapefiles package like the following. ...
8
votes
3answers
9k views

Removing columns in a SpatialPolygonsDataFrame in R?

My spatial polygon data frame (SPDF) contains too many columns (variables) and I want to remove most of the columns entirely. I know how to do this with a regular data frame in R, but I am unsure ...
3
votes
1answer
14k views

Creating/exporting multiple maps in one layout using ArcMap?

I have an air pollution data that consists monthly mean values of 12 monitoring stations. I made interpolation and want to export the 12 different map in one layout with one legend. Since I am a ...
4
votes
2answers
2k views

Checking if layers in dataframe using ArcPy?

I working on mxd (I work with ArcMap 10.2.2 & python 2.7.5.) that have 100 layers. I'm trying with python script to add layers to dataframe and check if the layers are within the dataframe. if it ...