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
11 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
35 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 ...
0
votes
1answer
62 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 ...
3
votes
1answer
42 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.
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
37 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
39 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
535 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
166 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
80 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
216 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
150 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
votes
1answer
31 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
1answer
715 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 ...
1
vote
2answers
81 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
228 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
187 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
200 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
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
2k 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 ...
2
votes
1answer
43 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
vote
1answer
134 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
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
votes
1answer
34 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)...
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 ...
1
vote
1answer
145 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, ...
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
360 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 ...
1
vote
1answer
266 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
602 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 ...
4
votes
1answer
579 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 ...
1
vote
2answers
959 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
2answers
301 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 (...
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. ...
0
votes
1answer
84 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
331 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 ...
1
vote
2answers
882 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 ...
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....
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 ...
2
votes
1answer
524 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
324 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 ...
2
votes
2answers
62 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 ...