Questions tagged [extents]
An extent is the minimum bounding box/rectangle (xmin, ymin and xmax, ymax) defined by coordinate pairs of a data source. All coordinates for the data source fall within this boundary.
814
questions
0
votes
2
answers
31
views
Create a sf from bounding box coordinates (and compare to another sf) in R
I want to create a sf from bounding box coordinates and compare it to another sf to see if it intersects. When I use the code below it doesn't seem to work:
I can't plot the sf as I get the error ...
1
vote
1
answer
53
views
Getting bounding box for scratch layer source using PyQGIS
I drew a New Temporary Scratch Layer, named New Scratch Layer, in QGIS. Both layer and project CRS are EPSG:3857. I am trying to compute its bounding box using PyQGIS. I use the following script:
[...
0
votes
0
answers
35
views
Alignment issue
I'm having this issue with two different datasets from the IPCC on QGIS, while parts at the centre of the overlap, the edges are different, with the Americas being east and west on each map:
I have ...
2
votes
1
answer
57
views
Getting tile bounds for EPSG:25833 WMTS tile using Python
The Norwegian Polar Institute provides this WMTS endpoint. I can successfully open the tileset in QGIS, and observe the queries made, using the Debugging/Development Tools (F12):
One such query is ...
2
votes
1
answer
59
views
Setting extent for screenshot via PyQGIS
I am trying to figure out how I can set the extent of the rendered image because with QgsMapSettings().setExtent it doesn't work for me.
How can I set the extent as big as the biggest active vector ...
0
votes
0
answers
18
views
Getting GRIB data of particular region by bounding box in GeoServer
We have a web app that shows maps we want to show some ocean effects on the map the UI and animation part have been sorted out but the problem we are facing now is the data is in GRIB format and it is ...
2
votes
1
answer
59
views
Setting map extents in print layout with QGIS Geometry Generator
I have a LineString layer that has geometries generated to draw boxes around them with an additional 10% of the line length added to each end.
I then want to use print layout and set the map extents ...
0
votes
1
answer
54
views
Pop-up extent out of screen and wrong title of the pop-ups
I am generating a map in the latest version of qgis2web using openlayers but having several overlapping layers the pop up goes out of scale, from the visual of the web, as shown in the image.
It has ...
0
votes
1
answer
32
views
OpenLayers zoom to WMS result set
I am using GeoServer with a plugin for a NoSQL backend. I am sending the equivalent of a CQL query to select a portion of a dataset and plot in on the map... like thousands of points. My plotting and ...
0
votes
1
answer
71
views
PyQGIS - zoom/fit layer extent to map item layout extent
I have a temporary vector file from a qgis processing.run() (basically a line shapefile temporary output):
gis_osm_roads_free_1_lyr = results['Gis_osm_roads_free_1']
I have a map_item:
map_item = ...
1
vote
1
answer
101
views
Getting continuous map extent using QGIS
All the basemaps on my QGIS stop just to the east of New Zealand.
Is there any way I can make the extent continuous (basically restart from the other side)?
0
votes
0
answers
16
views
Different coordinate extent of reclassfied slope in QGIS
I have a slope file generated from a reprojected file. Both files have the same coordinate extent. From the slope file, I reclassified the slope using the Raster Analysis: Reclassify by table. ...
0
votes
1
answer
46
views
Updating OpenLayers ZoomToExtent control
I have OpenLayers control defined like,
// Zoom to Extent control
var zoomToExtentControl = new ol.control.ZoomToExtent({ extent: [73.19, 15.12, 81.80, 22.77] });
Which will give us Extent button on ...
1
vote
1
answer
77
views
Getting extent of each individual feature in the vector source in OpenLayers?
i have a vectorSource that contains some features.i know how to get the extent of the vectorSource, but i do not know how to get the extent of each individual feature in that vectorSource.
i googled ...
0
votes
0
answers
35
views
gdal_proximity - setting processing extent using -te parameter in QGIS not working
the default processing extent of many tools in QGIS is the input layer's extent. GDAL Proximity (Raster Distance) is no different. According to the documentation (https://gdal.org/programs/...
1
vote
1
answer
69
views
Why is the extent of a "point" grid different from a "polygon (rectangle)" grid in QGIS?
I cannot find an answer to this question, not even in the official QGIS documentation. Here is the problem:
First, I delineate a survey area layer (geometry type is polygon):
When I create a grid (...
0
votes
0
answers
55
views
Reproject pseudo Plate-Carree to "Icosahedral Snyder Equal Area" using GDALWARP
Reproject pseudo Plate-Carree to "Icosahedral Snyder Equal Area" with gdalwarp.
I am trying to reproject a plate-carree to ISEA "Icosahedral Snyder Equal Area".
I suspect ISEA ...
0
votes
1
answer
39
views
Use GDAL TOOLS to change a JPEG plate-carree to a proper GeoTIFF using gdal_translate
I am trying to use GDAL TOOLS to change a JPEG plate-carree to a proper GeoTIFF using gdal_translate.
My input JPEG image is a full map of the Earth in plate-carree projection. I want to output this ...
2
votes
0
answers
115
views
Create bounding box polygon from extent of point features in PostgreSQL
I have a linestring table (table a) and a point table (table b). What I want is to extract the start points from the features in the linestring table and union them with the point features in the ...
3
votes
2
answers
465
views
Rotate a polygon bounding box
I would like to rotate a bounding box given a particular angle.
Here is what i get :
In this example the rotated bounding box does not contain the AOI blue polygon which is an issue for me. The green ...
0
votes
0
answers
44
views
Adjust the zoom of MapImageLayer, according to what is to be shown
I need to find a way to programmatically adjust the map's zoom when it gets loaded, so that only the sublayer to be shown, is visible in the area displayed in the map.
With FeatureLayer maps, I use
...
2
votes
0
answers
50
views
How can I prevent a WFS layer from refreshing on pan/zoom?
I'm using python to load a WFS layer into QGIS 3.34 - code snippet below. I've included a bounding box parameter within the url based on the current canvas extent at the time the script is run. The ...
1
vote
0
answers
63
views
ArcGIS Pro tool equivalent to QGIS "Create layer from extent"
Is there a tool or combination of tools in ArcGIS Pro that can create a feature class that corresponds to an existing feature class extent similar to the QGIS tool Create Layer from Extent?
I want to ...
0
votes
0
answers
73
views
Terra/geodata world map cropping issues, possibly due to truncated extent
Cropping geodata world map across Greenwich (not exactly though) or close to the poles gives a "Topology Exception" error on RStudio (Posit) cloud, although not on RStudio desktop. Also, the ...
3
votes
1
answer
99
views
Counting points from layer at map extent with QGIS expression
I want to create an expression in the QGIS 3.28 dashboard layer that counts points on a specific point_layer and with a specific value that is displayed in the current map_extent view
aggregate(
...
1
vote
0
answers
43
views
Reuse Extent menu from processing tools
Actually I'm using QgsExtentGroupBox in my plugin and it works fine.
Now I want to make the GUI more compact and therefor I want to implement the extent menu a lot of processing tools are using:
I ...
0
votes
1
answer
44
views
Setting extent in which one raster would show and other won't
I have 20+ raster spread out on huge area so I set the scale range (out beyond, in beyond) at which raster will be shown. But when I zoom into raster A, raster B with same scale range is also ...
0
votes
0
answers
77
views
QgsCoordinateTransform doesn't work correctly for outbound coordinates using PyQGIS in QGIS 3.28
I'm developing a plugin which, as part of its functionality, needs to retrieve the coordinates of the current canvas extent in WGS84.
I use qgis.utils.iface.mapCanvas().extent() to retrieve the extent ...
1
vote
1
answer
144
views
Aligning scale of map in QGIS print layout to extent of region of interest
I am quite new to QGIS and have managed to create a raster map with some additional labels. But when I want to export the map with some additional text, using Print Layout, the map gets "scaled&...
0
votes
2
answers
45
views
Wrapping of one huge raster with another raster and saving output such that both the rasters dimensions and crs match
I have two huge rasters, I want my target raster dimensions , height width to match with my source raster and save my target raster into another folder. Since it is huge in size I want to do tile/...
0
votes
1
answer
114
views
Tippecanoe | Can't set max zoom extent level 22 for mbtiles
I know this might be a duplicate question but I wasn't able to find any solution. I'm working on a tool with the help of this package which is actually a platform to convert a geojson file to mbtiles ...
0
votes
1
answer
236
views
Adding data to existing .aprx layout and zooming to extent of new data using ArcPy with ArcGIS Pro
I need to add data to an existing .aprx layout and zoom to the newly added data extent. Then, I need to export layout with new data as a JPEG.
This workflow is not clear online. My data is not in a ....
0
votes
0
answers
155
views
Difficulty interpreting bounding volumes from Google 3D Tiles API
I'm trying to create my own 3D globe, similar to Google Earth, by getting the relevant tile data from the Google Tiles API.
Using several steps to load the relevant data from Google, I receive a json ...
2
votes
1
answer
160
views
Extent not found on NASA's Black Marble monthly images - How to set it?
I downloaded NASA's Black Marble monthly nighttime light (NTL), VNP46A3. The product is in .h5 format and it contains the radiance NTL raster as well as the scientific data sets (SDS) in order to ...
0
votes
1
answer
187
views
Zoom to layer bounds on popup close in Leaflet
I have a GeoJSON data layer in a small Leaflet project and initially I zoom to its bounds.
map.fitBounds(dataLayer.getBounds());
I bind popups to each feature and zoom to the clicked feature when the ...
0
votes
2
answers
306
views
ArcGIS Pro zoom to previous extent
I am getting started with ArcGIS Pro 2.9 and I want to know how to zoom to previous extent preferably using a button as in ArcMap, since I am working on a foreign laptop and the keyboard configuration ...
1
vote
1
answer
328
views
Create Polygon out of minX, minY, maxX, maxY
I have a pandas dataframe with the min and max values from two polygons. How can I create two geometries (Polygons) out of these values using Geopandas or Shapely?
0
votes
0
answers
138
views
map.getView().fit(vectorLayer.getSource().getExtent(), map.getSize()); is not working
I would like to know how to get all multipolygon features i.e all districts features display on my web map when I select state from dropdown list.
This is the query i wrote to get all districts ...
0
votes
1
answer
57
views
Extending a raster with specific slope
I have a raster layer which i want to extend. The problem is that i want to extend it with specific ratio of vertical/horizontal (1:2). What is the best way to do that in QGIS?
3
votes
2
answers
262
views
Viewing the extents of individual tiles in Cloud Optimized GeoTIFF
I have a COG, e.g. https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/J/FS/2023/5/S2A_52JFS_20230501_0_L2A/TCI.tif and I want to inspect the internal tiling structure.
How can I ...
2
votes
2
answers
305
views
Getting the bounding box of labels with QgsLabelingEngine in PyQGIS
I am trying to get the bounding box of my labels in a vector layer in PyQGIS (Version: 3.30.2-'s-Hertogenbosch) with the following script but I need to create a vector layer from a WKT file and not a ...
0
votes
0
answers
78
views
WMS satellite imagery: how to set up bbox
I'm trying to retrieve satellite imagery in high resolution of a full country with a WMS API. I need them in HR since I want to perform a segmentation task on them. This is my code:
REQUEST_URL = &...
1
vote
1
answer
483
views
Setting bounds to combination of two GeoJSON layers in Leaflet?
I am creating an app with django, geodjango and Leaflet, I am also using django-geojson and django-leaflet.
I manage to insert on a map two features that contain points. But I am getting problems ...
1
vote
1
answer
960
views
Setting map view extent dynamically in OpenLayers?
Referring to the examples posted here https://openlayers.org/en/latest/examples/draw-and-modify-features.html and https://openlayers.org/en/latest/examples/extent-interaction.html
in the former ...
1
vote
0
answers
161
views
How to find the coodinates of a new bounding box from four circles present with known radius around the vertices of an existing bounding box [closed]
I have a bounding box which I have created. I know the lat lon of the four vertices of the box. On these vertices I have created a buffer circle of radius 10m and now I want to calculate a new ...
2
votes
1
answer
90
views
Why the extents of GeoDataFrame and masked file are different?
vector = some shape file, MultiPolygon in GeoDataFrame. File crs and vector crs are the same.
vector.geometry
0 MULTIPOLYGON (((47.59780 -19.38530, 47.59330 -...
Name: geometry, dtype: geometry
...
1
vote
1
answer
234
views
How to filter GeoJSON features with bbox condition in OpenLayers
I want to filter GeoJSON features with bbox condition in OpenLayers 7, so I coded like this:
const geojson = (Some GeoJSON definition);
const projection = (Some projection definition);
const ...
2
votes
1
answer
354
views
OpenLayers WFS source with bbox and filter
I am trying to work with the French IGN geoportal which provides a WFS source of data.
I have worked out how to use OpenLayers' Vector source with
const ignPkUrl = (extent: Extent, projection: string =...
2
votes
1
answer
152
views
PostGIS, creating spatial index on box2d column failes
I would like to store bounding boxes in a column of my table. Thus I wanted to use the box2d data-type for that column. However it seems like I can't create an index on that column. Here is my ...
5
votes
1
answer
960
views
Copy extent from one map to another in QGIS Layout [duplicate]
I'm trying to create a print layout with four maps that each show the same extent, but that each have different layers on top for examples:
Map 1 has satellite imagery for Zone B
Map 2 has contours ...