Questions tagged [data-frame]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
27 views

Selecting attributes by coordinates from DataFrame in Python

I wonder how to return the right information needed from this df. Currently I get an empty return. I think the problem is my selection because the coordinates are correct and all variables are as well....
0
votes
0answers
16 views

Extract into a dataframe the number of points in each buffer, in a set of concentric equi-distance buffers around a single point

I have the locations of the patients using an healthcare facility, and wants to extract the number of patients living at given distances from the hospital. I generated buffers at 500m increments ...
2
votes
1answer
20 views

Can't Form DataFrame from Parallel Offset Output

I've been developing code to take a .csv with lat-long coords and convert them to LineStrings before creating parallel offsets for them. This has been working so far, but yesterday after clearing my ...
2
votes
0answers
29 views

Not able to extract values from raster TIFF in EPSG:26912, but can in EPSG:4326?

I have an elevation file (.tif) in EPSG:4326 and point data for wildfire occurrence in the same projection. When I use this projection, I can use the following code to extract the elevation value, for ...
0
votes
0answers
19 views

Exporting Data Frame Extent to PNG

I've been trying to export my layer extent as a PNG file on ArcGIS. I have already set my data frame extent to the same size as my layer. I want to export this layer image as a PNG, but my page layout ...
0
votes
0answers
14 views

Change the order of the data frame when creating a layout [duplicate]

I need to change the order of the Data Frames in the .mxd that I created as a template so that the task of changing the layout is done easily. My question is this: ArcGIS 10.1 Changing default Data ...
2
votes
1answer
116 views

Converting DataFrame with geometry column into GeoDataFrame in Pandas

I have this DataFrame: In [120]: a Out[120]: a b c 0 111 333 [POINT (0 0)] 1 222 444 [POINT (0 0)] I am trying to convert with the next line, but it fails: In [125]: b = ...
0
votes
1answer
25 views

Restructure data.frame By Date Values in R [closed]

I have a data.frame in R shown below.. This data.frame summarizes counts by week for every year in a time series dataset. I am now trying to rearrange this matrix such that the years (2001-2020) will ...
-1
votes
1answer
20 views

What will be the coordinate system of base map layers added if the the coordinate of layer frame properties is MUTM in ArcGIS?

My coordinate frame is in MUTM that I have created. I have added base map layer and I want to know what coordinate system will it use.
1
vote
0answers
64 views

Export to PNG produces wrong color background (but not for JPG)

I need to export a map as a PNG image, but when I do the background, which is supposed to be white, comes out gray. This also happens when I export it as a TIFF or EMF, but not as a JPG. I have tried ...
0
votes
1answer
97 views

Convert multiband GeoTIFF to dataframe using all bands (R, Python or QGIS) [closed]

I have a GeoTIFF file with 2 bands and I want to create a dataframe like this: pixelID | band1Value | band2Value I would like to do it in R, Python or QGIS. As far as what I have searched, I could ...
1
vote
1answer
405 views

GeoPandas gdf.geometry.buffer for spatial join

In that part of the code I'm creating geodataframes (only point features) out of two CSV files. I want to merge all points from the two dataframes within a range of 150m. Therefore I create a buffer ...
0
votes
0answers
81 views

List of sf-object into one sf-object

that's a really simple question but I am kind of stuck with it. I have a list with multiple sf-objects and I want to put all sf-objects (dataframe) under each other and build one final sf-object. How ...
2
votes
1answer
45 views

Apply different symbology layers to different dataframes with arcpy mapping?

I have one shapefile, which I want to create a map of with 3 different data frames (showing three different attributes of the shapefile) on one map. I have 3 separate symbology layers files saved to ...
1
vote
1answer
239 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
237 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
126 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 ...
2
votes
1answer
298 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 ...
1
vote
1answer
25 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
42 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
356 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
149 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
143 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 ...
5
votes
2answers
3k 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
1k 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
88 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
421 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
66 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
49 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
1k 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
715 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
133 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
49 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
607 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
637 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
697 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
31 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
22 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
53 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
87 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
61 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
282 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 ...
10
votes
1answer
2k 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
451 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
36 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
972 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
64 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
455 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
154 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
417 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 ...