Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 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 = ...
Marin Marian's user avatar
1 vote
1 answer
55 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)?
Lane Simkin's user avatar
0 votes
0 answers
13 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. ...
Anaboy Suelto's user avatar
0 votes
1 answer
30 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 ...
SpiderMan's user avatar
1 vote
1 answer
62 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 ...
Amr's user avatar
  • 39
0 votes
0 answers
28 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/...
Guziko's user avatar
  • 1
1 vote
1 answer
61 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 (...
Chavdar Kirilov's user avatar
0 votes
0 answers
44 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 ...
Molly's user avatar
  • 35
0 votes
1 answer
27 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 ...
Molly's user avatar
  • 35
2 votes
0 answers
75 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 ...
kwiwe's user avatar
  • 409
3 votes
2 answers
224 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 ...
Magic Mushroom's user avatar
0 votes
0 answers
34 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 ...
Beauty's user avatar
  • 1
2 votes
0 answers
31 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 ...
davehughes87's user avatar
1 vote
0 answers
43 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 ...
Aquamarine's user avatar
  • 1,176
0 votes
0 answers
59 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 ...
mlyn's user avatar
  • 3
3 votes
1 answer
85 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( ...
Rii Pii's user avatar
  • 425
1 vote
0 answers
42 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 ...
geraldo's user avatar
  • 960
0 votes
1 answer
43 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 ...
educated_morron's user avatar
0 votes
0 answers
66 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 ...
SimonCartoDev's user avatar
1 vote
1 answer
97 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&...
user232388's user avatar
0 votes
2 answers
42 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/...
soumik chakraborty's user avatar
0 votes
0 answers
59 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 ...
msc's user avatar
  • 1
0 votes
1 answer
112 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 ....
Clouseau's user avatar
0 votes
0 answers
130 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 ...
Boris's user avatar
  • 1
2 votes
1 answer
140 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 ...
Nikos's user avatar
  • 1,033
0 votes
1 answer
126 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 ...
winnewoerp's user avatar
  • 1,504
0 votes
2 answers
176 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 ...
nanunga's user avatar
  • 533
1 vote
1 answer
246 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?
Daniel AG's user avatar
0 votes
0 answers
102 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 ...
Mounikareddy's user avatar
0 votes
1 answer
45 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?
Apo's user avatar
  • 1
3 votes
2 answers
195 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 ...
staf's user avatar
  • 326
2 votes
2 answers
265 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 ...
bdelliott's user avatar
  • 455
0 votes
0 answers
64 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 = &...
wodank's user avatar
  • 1
1 vote
1 answer
267 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 ...
Ernesto Ruiz's user avatar
1 vote
1 answer
564 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 ...
Amrmsmb's user avatar
  • 305
1 vote
0 answers
132 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 ...
sneha_jerin's user avatar
0 votes
0 answers
58 views

Get bbox of ee.Image and not the global coordinates

I am trying to get the extent of an ee.Image object. The image is result of reduced collection. I was trying to do this as following: bbox = img.geometry().bounds().getInfo()["coordinates"] ...
ReutKeller's user avatar
  • 2,139
2 votes
1 answer
71 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 ...
Max Poltora's user avatar
0 votes
0 answers
30 views

Issue about customizing Editor Map extent

We're working with GeoNetwork 3.12.9 and we're trying to set, within Editor Map Configuration of the Administrator User Interface, a map other than the default one (osm). Once saved the custom ...
Marisa Regina's user avatar
1 vote
1 answer
166 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 ...
kochizufan's user avatar
2 votes
1 answer
253 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 =...
Askirkela's user avatar
  • 123
2 votes
1 answer
104 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 ...
Humppakäräjät's user avatar
5 votes
1 answer
718 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 ...
Phoebe's user avatar
  • 317
2 votes
1 answer
338 views

Clipping in/with Sentinel Hub API

Is it possible clipping a Sentinel-2 image from Sentinel Hub with circular boundaries? In Sentinel Hub documentation, I only found support to Bound Box (BBox) AOI that close an image in a retangular ...
Caio Diaz's user avatar
3 votes
3 answers
154 views

Set print extent in demto3D of QGIS diferent than x min, x max, y min, y max

I have an area that I want to print in 3D. The area has 4 sets of coordinates. I first used a polygon of the area of interest, then cut the DEM of the same area. I used demto3D from QGIS to generate ...
Claudia's user avatar
  • 31
2 votes
0 answers
150 views

Changing coordinate system and extent of shapefile in ArcMap

I am using ArcGIS Desktop 10.8.2. I tried to change the coordinate system in a shapefile from TM65 / Irish National Grid to the coordinate system of a raster file (wgs_1984) opened in the same session....
matlabcat's user avatar
5 votes
2 answers
323 views

Can QGIS export a limited area of a project?

I am new to GIS in general, and I've created a map in QGIS that contains data for a very large area. I would like to copy this onto a mobile device, but the file size is too large, and I don't need ...
Malvineous's user avatar
5 votes
1 answer
237 views

Creating virtual layer with extent of features from multiple layers in QGIS

I am trying to create an atlas that shows a series of plots (polygons) along with the access routes (line features). I need to vary the extent to show the entirety of each site along with the access ...
Brian Fisher's user avatar
  • 1,133
8 votes
1 answer
191 views

Zooming to each vector layer extent, one at a time, using PyQGIS

I'm trying to write a python script that zooms to each layer's extents and then exports the canvas as an image after every zoom. I wrote a for loop that iterates through each layer, makes each one ...
I Love Mapping So Much's user avatar
2 votes
1 answer
134 views

How to know if WMS GetLegendGraphic supports bounding box? [closed]

I am working on an application where users can input WMS layers, which is displayed on a map along with the respective legend graphic. Now, I want to display content specific legend graphics based on ...
Lars Eivind's user avatar

1
2 3 4 5
17