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 ...
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 ...
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 ...
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,
...
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 ...
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,
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 ...
1
vote
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&...
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()});
...
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....
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
spatial-filter × 21google-earth-engine × 5
python × 3
wfs × 3
qgis × 2
coordinate-system × 2
pyqgis × 2
ogr × 2
filter × 2
focal-statistics × 2
arcgis-desktop × 1
arcpy × 1
gdal × 1
geoserver × 1
qgis-3 × 1
arcobjects × 1
field-calculator × 1
dem × 1
attribute-table × 1
sql × 1
spatial-analyst × 1
c# × 1
remote-sensing × 1
raster-calculator × 1
geopandas × 1