5 votes
Accepted

Adding and filtering layer with map canvas extent using PyQGIS

You can create a temporary layer based on your Postgis layer. You can either filter features of the layer wich intersect the canvas extent, or filter the features wich are completly within the canvas ...
JULESG's user avatar
  • 1,607
4 votes

Adding and filtering layer with map canvas extent using PyQGIS

This might not be what you need, but do you know of PostgreSQL execute and load SQL? This algorithm performs a SQL database query on a PostGIS database connected to QGIS and loads the query results ...
BERA's user avatar
  • 68.8k
4 votes

Looking for documentation of OGR SetSpatialFilter

Here is a link to the documentation, with the following content: SetSpatialFilter(Layer self, int iGeomField, Geometry filter) void OGR_L_SetSpatialFilter(OGRLayerH hLayer, OGRGeometryH hGeom) Set ...
Marcelo Villa's user avatar
3 votes

What is the correct way to apply a SpatialFilter on a Layer using GDAL & Python?

Using ogr2ogr (gdal.VectorTranslate) as library function: from osgeo import gdal ds_in = gdal.OpenEx('/path/to/input.shp') ds_out = gdal.VectorTranslate('/path/to/output.shp', ds_in, ...
Antonio Falciano's user avatar
2 votes

Does ArcPy (Standalone) have option like Spatial filter?

Just create layers using arcpy.management.MakeFeatureLayer(). You can add an SQL attribute filter to each function. These are very fast because they don't actually copy the data. Then you can use the ...
KimO's user avatar
  • 345
2 votes
Accepted

fes:DWithin throw parsing Error upon upgrade of geoserver from 2.13 to 2.18

This exception is caused by a bug in Geotools 24.x. It's fixed in release 25 To apply this correction to the next release of Geoserver 2.18.3, you need to backport this fix on geotools 24.X Regards,
eropartz's user avatar
2 votes

Adding and filtering layer with map canvas extent using PyQGIS

Finally I found a third way to filter my vector layer, without creating a shapefile : I use the "materialize" method from the "qgsVectorLayer"class, to create a memory layer which ...
V Damoy's user avatar
  • 389
1 vote

Mode Spatial Filter

ee.Image.focal_mode() You can find the documentation here
Matt's user avatar
  • 14.7k
1 vote

fes:DWithin throw parsing Error upon upgrade of geoserver from 2.13 to 2.18

I've just tested with 2.18.1 and 2.19.0 and once I change the layer to sf:bugsites and the geometry to sf:the_geom and add in the reference to sf (xmlns:sf="http://www.openplans.org/spearfish&...
Ian Turton's user avatar
  • 80.4k
1 vote

Create feature collection of polygons' centroids in GEE

I figured it out. A mapping function can extract this information and place it in a separate dataframe var getCentroids = function(feature) { return feature.set({centralPoint: feature.centroid()}); ...
user157564's user avatar
1 vote
Accepted

Is there a way to filter results in the attribute table of a point shapefile by the extent of a second polygon shapefile in QGIS?

In the Processing Toolbox is an algorithm "select by location" which pretty much does what you are asking for! An in depth- description of how to use this can be found here: https://docs....
sn1ks's user avatar
  • 2,862
1 vote
Accepted

Applying low pass/median filter over DEM in GeoTIFF format using ArcGIS Desktop?

ArcGIS 10.x has a tool in the spatial analyst toolset called Majority Filter which will replace cells in a raster based on the values of their neighbors. Here is a link to the tool which is available ...
GBG's user avatar
  • 9,404
1 vote

Applying low pass/median filter over DEM in GeoTIFF format using ArcGIS Desktop?

If you're not stuck with ArcGIs you can apply the Median filter from the WhiteboxTools. It works like a charm and you can also chose from a series of other filters if you want to compare results. You ...
BobGratton's user avatar
1 vote
Accepted

Select by Location (Between two layers) - ArcObjects C#

I solved this by iterating through my feature class and adding all the points to a MultiPoint. Then I casted this multipoint into IGeometry and sent it to the function. Code: (I already had a ...
Tayyab Mir's user avatar

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