Kartograaf
  • Member for 2 years, 10 months
  • Last seen this week
Why is there no state with code "03" (among other missing numbers)?
Accepted answer
14 votes

These are Federal Information Processing Standard (FIPS) state codes, and the ones you mention are missing because, from the wiki: "certain numeric codes "are reserved for possible future use in ...

View answer
Selecting and exporting points inside specific polygon using QGIS
Accepted answer
8 votes

You can do this in two steps using QGIS. (1) First, use the tool the "Join Attributes by Location" to create a new field in your points layer that describes which polygon each point falls ...

View answer
Shp is not valid or recognized data source, QGIS 3.10
Accepted answer
8 votes

Your attribute table (.dbf) has some strange contents. It looks like somehow it was corrupted by your link to microsoft.

View answer
Making elevation contours of raster smoother using QGIS
6 votes

There are several tools that exist in qgis to smooth contour lines as opposed to smoothing the raster itself , including vector->geometry->simplify, the vector geometry tool "smooth", and the GRASS ...

View answer
What is the difference between Ground Sampling Distance (GSD) and spatial resolution?
Accepted answer
5 votes

In remote sensing, ground sample distance (GSD) refers to the dimensions of a single pixel in an image as measured on the ground. The calculation of GSD uses the focal length (FL in figure below) and ...

View answer
Digital elevation model versus hillshade for creation of cross-section In ArcMap
4 votes

If I understand you correctly, the DEM contains the values (elevation) that you want to use to create your cross sectional visualizations to show faults or fractures in the terrain. You may want to ...

View answer
Distances in Google Earth Pro
4 votes

First, create a path between the two locations and highlight it, then go to Edit -> Show Elevation Profile (#1). Right-click the path in the Places tab then click Properties (#2), then click the ...

View answer
Calculate average value in GeoTIFF file inside a shapefile polygon?
Accepted answer
4 votes

The process of summarizing raster data within the bounds of some 2d vectors is commonly called zonal statistics and can be accomplished using open source software in a number of ways. For example: ...

View answer
Rasterize and sum polygons in Python
3 votes

Sum operations on rasters require that the input data share many properties, including having the same CRS, same resolution, and (crucially) the same extent. Because the rasters you mean to sum are ...

View answer
Find and exclude polygons using GeoPandas
Accepted answer
3 votes

You can clip the points using the smaller polygons, then subset the larger polygons using a lambda function to find which ones contain any remaining points, such as: import geopandas as gpd #read in ...

View answer
What is the proper way to calculate distance in km from degrees
Accepted answer
3 votes

Convert your points to UTM first using Rgdal, for example: dir <- 'C:/your/path' setwd(dir)#set working directory pointfile <- 'points.csv' data <- read.csv(pointfile)#read in data library(...

View answer
Add multiple points correctly distributed within a polygon
Accepted answer
3 votes

You can use the tool called "regular points" (Vector-> Research Tools) in QGIS to make the points layer. Use your polygon layer as the extent, and adjust the point spacing to get the point density ...

View answer
Calculating pairwise Spearman's correlation coefficients for multiple raster layers in R
Accepted answer
3 votes

First convert the rasters to variables in the same dataframe, then calculate the pairwise correlations and use the package 'corrplot' to display the results in a matrix. #dependencies library(raster) ...

View answer
Renaming shapefiles from Cyrillic symbols to Latin ones using ArcPy
3 votes

If you use string.replace here, you will have to run it separately for each character in your string which will be tedious and inefficient. I think a better approach is to use a dictionary (which ...

View answer
ArcMap - How to create a grid in acres
2 votes

There are ~4046.86 square meters in one acre, so if you take the square root you get ~63.6149353533 meters, which should match the dimensions of any side of the cells in your fishnet layer (assuming ...

View answer
Removing pixels of a GeoTIFF based on a scalebar
Accepted answer
2 votes

I agree with @user2856 that you're unable to directly filter the pixels based on the values in your scale bar, however, if you are ok with a (hacky) workaround, here is a potential solution using R ...

View answer
rasterio - set nodata value per band
2 votes

I'm not sure about rasterio, but you can use GDAL's gdalwarp function to overwrite the nodata values of each band in a multiband raster by placing the values inside quotes (single on linux, double on ...

View answer
Equal distribution of points to regional hubs in QGIS
2 votes

I'm not sure about an easily repeatable way to go about this in QGIS, but here is a potential solution using the constrained kmeans algorithm in Python: import fiona import numpy as np import ...

View answer
How to add a border around a GeoTIFF?
2 votes

You can use gdal.warp to specify the new dimensions, e.g., gdalwarp.exe -te xmin ymin xmax ymax old_extent.tif new_extent.tif

View answer
Plotting a heatmap of Kriging with coordinate in R
Accepted answer
2 votes

Here is a possible solution using akima & ggplot2. #dependencies library(ggplot2) library(tidyr) library(akima) #set working directory setwd('C:/Path/to/data') df <- read.csv('kerpentest0909x....

View answer
Selecting polygons within another polygons
Accepted answer
2 votes

You can use the function st_join in the package sf to add the field you want from 'shared management' to the polygons within them that belong to 'sectors' The code will look something like library(sf) ...

View answer
Removing overlapped buffers using Google Earth Engine
2 votes

You can first extract the individual features from the feature collection and find the intersections between them using: //extract individual features var f0 = buffered.filter(ee.Filter.eq("...

View answer
Generating raster (spec. GeoTiff) out of mesh file (.ply)?
2 votes

You can use cloudcompare or meshroom software to convert the .ply mesh file to a point cloud (.las or .laz). Once you have it in point cloud format (with normals computed), use a simple script in R ...

View answer
Citation of Mission Planner
2 votes

Here is the google link to the most used format: https://scholar.google.com/scholar?cluster=15058731290445770119&hl=en&as_sdt=5,44&sciodt=0,44 And the second most used: https://scholar....

View answer
Removing overlapping parts of polygon
2 votes

It sounds like you want to take the difference between your two layers. You may need to run the operation twice (for A-B and B-A) then join the results if you intend to have all of the data in the ...

View answer
Converting raster pixels to polygons with GDAL python
2 votes

This code will make a point vector layer with points in the center of all of your pixels and having an 'ID' field that contains a unique value for each. If you take the output layer and rasterize it ...

View answer
Selecting Parcels by Watershed boundary - QGIS 3.4
Accepted answer
2 votes

Use Vector -> research tools ->Select by location and set the top field to your parcels, then check the boxes for "are within" and "intersects". Set the comparing to the features from layer to your ...

View answer
Calculating vegetation indexes with GDAL raster calculator?
2 votes

You need to assign band designations based on the information provided by the sensor manufacturer. For example, if you are using landsat data, you can find them here: https://www.usgs.gov/faqs/what-...

View answer
Isolating utility pole points from small scale LiDAR scene?
2 votes

I've had lots of success using the point data abstraction library (PDAL) to do this and a host of other operations via the anaconda terminal. You can write a simple pipeline to remove outlier points ...

View answer
Controling affine transform of raster in ArcGIS Pro
Accepted answer
2 votes

You'll want to use the translation, rotation, and scale tools to transform the data manually. For translation use the "shift" tool, for rotation use "Rotate" and for scaling use "rescale".

View answer