Questions tagged [data-frame]

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

Filter by
Sorted by
Tagged with
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). ...
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 ...
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 ...
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 ...
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, ...
7
votes
1answer
972 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, ...
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. ...
5
votes
3answers
2k views

Uniform Annotation Font Size in Multiple Data Frames

I'm making a map that has five inset maps that display a smaller map scale where point features are more dense. I have exported my labels to annotations in the geodatabase so that I could fit the ...
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 ...
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 ...
4
votes
1answer
570 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 ...
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
2answers
2k views

Re-using dataframe in ArcGIS without ArcMap crashing with R6025 error?

I have a large map with an inset. In Arc9.3 I was able to copy that inset data frame into another mxd to use again as another inset - it is set up exactly how it is needed. Rather than re-build a new ...
4
votes
1answer
430 views

Exporting Multiple Data Frames with ArcPy and Data Driven Pages?

I have a problem in Data Driven Pages In my Mxd proyect I have 3 Data frames, each frame has 3 layers with their respective legends. I already activated the process of Data Driven Pages to export a ...
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 ...
4
votes
1answer
59 views

Hiding features of a layer at different scales

I'm using ArcMap 10.5.1 I have a map with journeys made by patients across the country as lines features. All journeys are in the same layer. Some of these journeys go right across the country, while ...
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?
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 ...
3
votes
1answer
3k views

Clip data frame using Outline of Selected graphic(s) in ArcGIS Desktop?

I did a subtraction of a data frame in ArcGIS using the following steps. I prepared a layout in ArcGIS. There is a lot of empty space at the top of layout page. So I want to remove this space. I used ...
3
votes
1answer
341 views

Data driven pages for multiple frames

I would like to produce series of maps with three different base maps. Within each data frame I have the same point shapefile with 1000 locations. Data driven pages allows only to produce maps from ...
3
votes
1answer
36 views

Read N number of rows from shapefile using GeoPandas

Pandas has a parameter nrows for selecting how many rows will be read into the dataframe. Does GeoPandas have a similar parameter? Couldn't find in the documentation.
3
votes
2answers
304 views

Exporting Spatial Data Frame of GWR results from R

How can I export Spatial Data Frame of GWR results from R? Do I need to use readShapeSpatial? bg<-readShapeSpatial("BG_Div_NO2_Solar_Nozero.shp") df.bg <- as.data.frame(bg) df.bg.spdf <- ...
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 ...
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, ...
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?
3
votes
1answer
77 views

Does arcpy have a way to determine if a data frame overlaps a page extent?

I'm in the process of writing a script that will iterate through multiple MXDs and extract the data from layers that are turned on and only data that is within the data frame extent. Some of the ...
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
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 ...
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 ...
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 ...
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 ...
2
votes
2answers
483 views

Adding Geographic Coordinate System and Projected Coordinate System layers

So I have two layers that I am adding into ArcMap. I know for a fact that when you added the first layer with Projected Coordinated System, the 2nd layer, which has a geographic coordinate system ...
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?
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,...
2
votes
1answer
1k views

AttributeError with unicode object with data frame in python script

I'm running a python script from arccatalog and it works, however, I am trying to add layers to an mxd and need to declare the data frame. I keep getting this error message. type 'exceptions....
2
votes
1answer
33 views

Placing data frame as inset on only one page of Data Driven Pages map book?

I am using data driven pages to make a 5-page mapbook of an area. There is also one far-away site that I wanted to include an inset of on the first page of my mapbook (near to where it is). However, I ...
2
votes
2answers
575 views

From a Grid map to a dataframe of presence/absence of each cell

Working in R, I have a grid map of the world (as SpatialPolygonsDataFrame object). I have also many indipendent shapefiles (formed by several polygons) expressing species ranges. I grouped all these ...
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
2answers
7k views

Seeking function to calculate mean for missing or NA values in dataframe using R?

I am trying to develop a function that will calculate a mean lat/long for my missing or zeros location (lat/long) data in my dataset. I have locations for many SETS within the same TRIP, which tends ...
2
votes
1answer
108 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 ...
2
votes
1answer
40 views

Turning All layers on for all data frames in ArcMap using ArcPy?

I am using ArcMap 10.2. I used the following code to turn all the layers on for the Main Map data Frame. dFrame = arcpy.mapping.ListDataFrames(current_mxd,"Main Map")[0] for lyr in arcpy.mapping....
2
votes
1answer
497 views

How to iterate in a Spatial Polygon Data Frame in R?

I'm trying to iterate in a SpatialPolygonDataFrame that contains 110 features. I tried to use the following code with no success: iterate.spdf = function(x){ for(i in 1:nrow(x)){ p = x[i,...
2
votes
1answer
127 views

Modifying Mercator projection in ArcMap?

I have a shapefile which is consistently drawing in the wrong place. Luckily I was given some information about it and am now wondering how to get the shapefile properly projected and drawn. What I ...
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 ...
2
votes
1answer
175 views

Add Date to raster layers in raster stack in R

I have a raster stack and I want to add to it a Date field which will include the year-month-day for every rasterlayer. I have my dates in a one column data.frame. I tried to do this with addLayer ...
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.
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 ...
2
votes
0answers
34 views

Rotating symbols by Data Frame coordinate system in ArcGIS Pro?

Is it possible to ensure that symbols rotated by attribute (compass azimuth) retain their proper orientation when the Data Frame coordinate system changes? Answers have been provided for this issue ...
2
votes
0answers
66 views

Pan and Zoom via mouse not working in New Data Frame?

Inserted a new data frame for a small overview map in the corner of my display. Left click and selected properties, set the same coordinate system as the larger display, set the Extent Indicators to ...