Questions tagged [data-frame]

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

Filter by
Sorted by
Tagged with
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 ...
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 ...
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 ...
8
votes
3answers
318 views

Move legend if it overlaps features within dataframe using ArcPy

Trying to find a way programmatically (arcpy) move the legend if it intercepts features within a data frame, in the scenario below, if the legend obscures the view of the AOI, then I want it to move ...
7
votes
1answer
974 views

r - create multipolygon from overlapping polygons using sf package

I'm trying to remove overlapping areas from multiple polygons using sf like the following: # sample polygon poly <- data.frame( lon = c(0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 2, 2, 0.8, 1, 1, 2, ...
3
votes
2answers
7k views

Switching Map Units on Data Frame Properties back to Feet in ArcMap?

Using ArcView 10.1, I cannot switch the Map (Units) nder Data Frame Properties to Feet. It is currently at Decimal Degrees. Display can switch. How do you switch it back to Feet?
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?
2
votes
1answer
111 views

Calculate mean values for all bands and date to a dataframe

I have 5 rasters, each having 10 bands, where each band corresponds to a specific date. How do I calculate mean values for all 10 bands and save them? I need to save the mean values in a dataframe ...
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
951 views

Clipped data frame clips labels?

I have a large project with provincial data. The project is currently using a data driven map with a clipped data frame for the province. The issue is the data I'm trying to show is thousands of point ...
0
votes
1answer
44 views

Associating Inset Map with Layer?

I'd like to only display an inset map, inset map scale bar, frame and leader if an associated layer is displayed. Similar to Associate Point Layer, Annotation Group and Line Layer in Map Legend but ...
0
votes
2answers
308 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 ...