Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [data-frame]

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

0
votes
2answers
33 views

Convert SpatialPoints to SpatialPointsDataFrame

Give an object x of class SpatialPoints how do I convert it to a SpatialPointsDataFrame ? class : SpatialPoints features : 50 extent : 3187836, 3827836, -489229.3, 950770.7 (xmin, ...
0
votes
2answers
80 views

QGIS Data Frame Clipping for Basemaps

In ARCGis its possible to Clip your Data Frame so you just see the Data within the defined area. Like shown here: https://www.cdc.gov/dhdsp/maps/pdfs/GIS-Tips-Data-Frame-Clip-Function.pdf With this ...
0
votes
0answers
24 views

Switching Between GCS & PCS in a Data Frame For Accurate Acreage/Distance Measurements

I'm working with a data frame that contains multiple layers; data frame and layers all use a GCS (WGS_1984). On one layer in particular, I want to be able to draw and measure the acreage of polygons. ...
2
votes
0answers
37 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 ...
0
votes
1answer
39 views

Associating Inset Map with Layer using ArcPy?

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
1answer
40 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 ...
2
votes
1answer
71 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
65 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 ...
0
votes
1answer
44 views

Moving/Reprojecting raster to a different central meridian?

I have a raster set to 0-360E projected using WGS:1984. When I modify the Data Frame Properties GCSWGS1984 to a custom meridian of 180, the raster does not move. The polygon of the continent moved ...
-1
votes
1answer
29 views

Removing layer from specific data frame using ArcPy gives IndexError?

I work on several maps- each map has different number of data frames (several maps had only 1 or 2 data frames). with this code i try to remove layer "frame" from the third data frame only. I want ...
1
vote
0answers
158 views

SVM classification in R

I have the following dataframe containing training data to be used in a SVM classification. The first column ID must be avoided and the column Class contains the response variable. > training_S ...
1
vote
1answer
118 views

Calculating Median/Quantile of Rasterstack and converting Results to Data Frame in R

I have a Raster Stack with 32 Raster Layers. What I want to do is to calculate the median for each Raster and also the 0.25 and 0.75 quantiles. Then I want to convert the results into a dataframe. ...
0
votes
1answer
94 views

Extract pixel values using pixel condition in R

I am preparing a dataset to run a SVM classification. So far, I have a raster stack which includes a layer ([6]) for training > S1 class : RasterStack dimensions : 3865, 6899, 26664635, 6 ...
0
votes
0answers
25 views

The map Frame properties

I am working on Map Frame layout and would like to remove: - the oval shape on the edge: (to make it just 90 degrees) add measurment 480 000 490000 and 4520000 450000 corresponding I tried ...
1
vote
0answers
20 views

Marker symbols from a WMS not behaving with a rotated data frame?

I have unchecked "Rotate marker symbols with dataframe" in ArcGIS, which works as normal for marker symbols from locally sourced shapefiles, however, the WMS layer marker symbols do not respect the ...
0
votes
1answer
27 views

Getting dataframe extent from a polygon and exporting to PDF issue

I created a script to get the extent of a polygon, apply it to the data frame extent, and then export the layout as a PDF. However, I'm not getting any errors but the script is printing out at a ...
2
votes
1answer
33 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....
-1
votes
1answer
30 views

Adding rasters from folder if it in the data frame extent of the map using ArcPy?

I have 55 rasters located in "G:\desktop\Project\lyr\50k", and i try to add them to MXD file - only if the rasters extent are in the dataframe extent of the MXD file, using python code (in ArcGIS 10.3)...
1
vote
1answer
100 views

Why is Label Placement Menu Different with Additional Data Frame in ArcMap?

This is the first time I've tried using multiple data frames in layout view of ArcMap 10.3.1. I'm trying to label some counties, but the label placement options menu in this additional data frame is ...
0
votes
0answers
35 views

Is it possible to copy-paste a table from excel into an Activated data frame?

I am creating a map series via data driven pages, and need each map to have its own table. I know you can copy-paste excel tables directly into the mxd, however, when I try to activate the data frame ...
7
votes
1answer
780 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, ...
1
vote
1answer
195 views

raster info as table in R

I want to display the information of a raster layer as a table or data frame in R. In particular, I am most interested in the raster name and resolution. I want the information which shows by just ...
1
vote
0answers
27 views

Duplicate Layers When Using Multiple Data Frames

I regularly work with on an .mxd with multiple data frames, showing updates on one Area of Interest shapefile per data frame. This has always worked without a hitch to show updates on 2, 3, or 4 non-...
2
votes
2answers
511 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 ...
4
votes
1answer
55 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 ...
0
votes
2answers
226 views

Error creating dataframe - R

I am using the following code to extract raster values over a SpatialPolygonDataFrame. result<-extract(Stack, polygons) >Stack class : RasterStack dimensions : 634, 862, 546508, 13 (...
0
votes
1answer
71 views

Snap points to points of different layer (based on attributes, not nearest)

I have 2 layer of points, PointLayer1 and PointLayer2. PointLayer1 has to be snapped to PointLayer2. I have a table that has IDs of PointLayer1 that has to be snapped to PointLayer2. Sample Table: ...
1
vote
1answer
116 views

Clip labels to the extent of another data frame

I'm making a townwide map of a water distribution system with a zoomed in inset (a seperate data frame) for the densest part of town. For the townwide map, I'd like to show the labels for pipe size ...
2
votes
1answer
437 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,...
8
votes
3answers
287 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 ...
1
vote
2answers
662 views

Setting data frame to match exact borders of map using ArcGIS Desktop?

I would like to have the border of the data frame to fit exactly the maps that are shown inside, so in other words, I want to get rid of blank spaces. I know, this is possible by dragging the ...
3
votes
1answer
294 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
76 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
119 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 ...
1
vote
2answers
72 views

Exporting each spatial bookmark to jpeg using arcpy gives IndexError?

I have some spatial bookmarks in my MXD file and i want to export each and every bookmark as one jpeg file. I have found below code but it is giving an error. import arcpy mxd = arcpy.mapping....
1
vote
0answers
68 views

re: Grid Issue with environmental data-frame in R

So I am trying to use the package ppmLasso to create species distribution models. Before I can run my models I need to put my environmental data into a data frame instead of as a raster. I have done ...
0
votes
1answer
181 views

Adding Shapefile to Multiple Data Frames using ArcPy?

I'm trying to simply add a shapefile to 2 data frames of a Map Document, the shapefile is already in a third dataframe of the same Map Document. I was using the guide below but am getting the ...
1
vote
1answer
123 views

Aligning dataframes to exactly match information in another dataframe when sizes of 2 dataframes are different?

I have a dataframe which is using data-driven attribute (say zone). Now this layer has grids with specific numbering but since it is data driven, each time the zone changes, the grid numbering will ...
1
vote
1answer
88 views

ArcMap 10.3 Display different extents in Layout view (same dataframe)

I have a Layer with around 100 rather small polygons that are quite far apart spatially. If i want to make a single map with them you can barely see the fill colour of the polygons. The solution i'm ...
3
votes
2answers
275 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 <- ...
1
vote
2answers
124 views

Clipping to Shape using ArcGIS for Desktop?

I work on a regional level, within that region there are many towns. Data only exists at a region wide level, I am trying to avoid creating town wide datasets to save time. I am currently making a ...
1
vote
0answers
341 views

Convert a data frame in R to a polygon for viewing in Google Earth

I have a dataframe in R which contains numerous columns of lat long coordinates. Each row of the data frame contains 9 x lat/long coor points. I wish to plot each of these rows in Google Earth using ...
0
votes
3answers
304 views

I want to do SpatialLines programatically

This is my dataframe: df <- data.frame(ID = rep(1:100, each = 2), x =runif(200, 10, 90), y = runif(200, 10, 90)) For each ID I need to create SpatialLines, I haven't had good luck. I think I ...
4
votes
1answer
395 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 ...
1
vote
1answer
65 views

Is there any way to dynamically synchronize selections between different data frames in ArcGIS?

Here's the scenario: I have two different data frames in ArcGIS (10.3.1). In both, a dataset is added from an Excel spreadsheet. In one data frame (call it "Map"), a layer is created from x,y ...
1
vote
2answers
876 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
61 views

Clip Dataframe Arcgis for data driven map

I'm trying to do a map of several provinces bordering each other. The map needs to focus on each province and not the neighbors. therefore when using the data driven map function i would like to clip ...
-1
votes
1answer
269 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
54 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, ...