Questions tagged [data-frame]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

ArcGIS Python API Plotting ValueError: setting an array element with a sequence

Got a pandas spatial df using ArcGIS python API. The data is read in via pd.DataFrame.spatial.from_featureclass()–i.e., a shapefile. Once loaded, df has a SHAPE column, as you see here. Next, ...
1
vote
1answer
21 views

How to determine column value based on lowest value from other column? [closed]

I have the following dataframe with same value in 'nearest_beacon' column but different distance in 'vms_distance' column. My Dataframe: nearest_beacon vms_distance associated 4548780 0.486456 ...
0
votes
1answer
36 views

Dataframe data handling or SQL Query in ArcMap

I'm trying to perform an SQL query in ArcMap with the following data set, and I have not been able to solve the problem. The idea is to keep all the information of the columns, but for example if the ...
3
votes
1answer
51 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.
2
votes
1answer
44 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
0answers
41 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 ...
0
votes
2answers
669 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
180 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
46 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
88 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
43 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
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 ...
2
votes
1answer
244 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
187 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
65 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
32 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
253 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
213 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
218 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
26 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
21 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
30 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
46 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
35 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
163 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 ...
7
votes
1answer
1k 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
275 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
29 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
622 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
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 ...
0
votes
2answers
319 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
86 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
343 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
564 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
344 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
949 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
371 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
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 ...
2
votes
1answer
136 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
82 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
71 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
229 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
137 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
98 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
333 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
148 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
361 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
371 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
452 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
73 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 ...