Hot answers tagged

6

Try to tackle you task in a bit different way. This question was already explained here Postgis – Opposite of ST_Within. Let's assume there are two layers "schools" (orange) and "libraries" (purple), see image below. So, your query can look like SELECT s.* FROM schools AS s WHERE s."osm_id" NOT IN ( SELECT s."osm_id" FROM schools AS s, libraries ...


4

The plot() method creates a matplotlib figure and returns an ax object by default. If you want to create just one figure and plot multiple geometries on it, you have to specify the ax parameter. For example: ax = map.plot(cmap = 'jet', column = 'NAME_1', figsize=(10,10)) # keep ax object in a variable pt.plot(ax=ax) # specify ax argument Make sure, of ...


3

In QGIS 3.8 and above the "Join attributes by nearest" native tool in Processing Toolbox does the job easily!


2

You can easily do this with a for loop. Lets first create some data. library(sp) sr=SpatialPolygons(list(Polygons(list(Polygon(cbind(c(180114, 180553, 181127, 181477, 181294, 181007, 180409, 180162, 180114), c(332349, 332057, 332342, 333250, 333558, 333676, 332618, 332413, 332349)))),'1'), Polygons(list(Polygon(cbind(c(180042, 180545, 180553, ...


2

You could perhaps buffer your points with the number of meters you want your radius to be: var table = ee.FeatureCollection([ ee.Geometry.Point([10, 0]), ee.Geometry.Point([10, 0.1]), ee.Geometry.Point([10, 0.2]) ]) var buffered = table.map(function (feature) { return feature.buffer(5000, 1) }) Map.addLayer(buffered.draw({color: 'FF0000', ...


1

You dont need to merge or create a line between them to measure distance: import fiona, shapely.geometry p1 = '/home/bera/GIS/Data/testdata/p1.shp' p2 = '/home/bera/GIS/Data/testdata/p2.shp' #https://gis.stackexchange.com/questions/140069/how-to-measure-distance-using-shapely firstpoint = [shapely.geometry.shape(f['geometry']) for f in fiona.open(p1)][0] ...


1

Could be wrong but if sexagesimal degrees 130.1 should be 130°6' http://ghiorzi.org/sexagesi.htm For azimuth calculation, not sure I understand your problem (sorry but lack of infos, so unclear for me) but look at How to calculate azimuth in QGIS field calculator? for azimuth calculation. You will need your coordinates using WGS 84 (degrees) as from your ...


1

Use 6.566256, 51.639771, i.e longitude, latitude. GIS software generally uses X, Y coordinate references, so when you have latitude, longitude (Y, X) you need to reverse them


1

These are great resources for your issue. https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-classes/geometry.htm https://pro.arcgis.com/en/pro-app/arcpy/data-access/updatecursor-class.htm import arcpy # Location of point and polygon shapefiles arcpy.env.workspace = r'C:\gispy\stackexchange' Point = 'Point.shp' Polygon = 'Polygon.shp' polyGeom = ...


1

You could simply use the average (or also the RMS) of the distances of each point to the cluster center. The cluster center is computed as the average position of the cluster points.


1

I was a little bit confused by your question, but I think I understand it: When you are converting the points to raster, make sure to set the "Snap Raster" to the original raster you want the new one to align with. You can find "Snap Raster" by clicking "Environments" after you open the convert to raster tool. https://desktop.arcgis.com/en/arcmap/10.6/...


Only top voted, non community-wiki answers of a minimum length are eligible