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
25 views

Inserting multiple data frames based on a smaller scale [closed]

I am using ArcMap 10.4. I have a large dimension map that need to show different parts of it in multiple maps with smaller scales (like the image attached which is a sample file that I have and I ...
1
vote
1answer
49 views

How to import raster from PostGIS into Python as dataframe

I am trying to import the raster from PostGIS into a raster for further analysis. I know that I should use psycopg2 to connect to DB, but I do not know how to query the raster from DB, and then ...
1
vote
1answer
27 views

Add a timestamp to a dataframe in Python/Earth Engine

I came across an example kindly shared on youtube by Madhu Mysore. Here is the link: https://www.youtube.com/watch?v=IGUYSeoeHhg&t=2105s. I changed the code as I am not interested in regions at ...
1
vote
1answer
30 views

Removing labels from inset areas within main data frame

I have three inset maps (separate data frames) within my map. I want to not label the buildings within the inset map extent on the main data frame, but keep labels outside of the inset extent. If it ...
1
vote
1answer
106 views

ArcPy - List layers and list fields in one code

I am trying to combine ListDataframes, ListLayers and ListFields in one ArcPy code. I can do it one by one (first list layers in one code, and then list fields in second code), but I am trying to do ...
0
votes
0answers
33 views

Error converting a DataFrame to a GeoDataFrame

I have a two DataFrames, one with a Point column and the other with a MultiPolygon column. I need to convert both of then into a GeoDataFrame. To do it with the first one I have used this: geometry =...
0
votes
0answers
31 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
22 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
40 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
133 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
63 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
60 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 ...
1
vote
2answers
1k 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
374 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
56 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
153 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
51 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
45 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 ...
3
votes
1answer
414 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
374 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
87 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
33 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
345 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
300 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
344 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
27 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
35 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
56 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
41 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)...
2
votes
1answer
221 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
326 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
32 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
734 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
62 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
374 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
100 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
365 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
744 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
381 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
1k 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
439 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
79 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
164 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
88 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
72 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
266 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
147 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
102 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 ...