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
2
votes
0answers
30 views

Select extent on canvas - QGIS Plugin

I'm designing a QGIS plugin where I'd like to offer the user the functionality to select the extent of a bounding box from the canvas like in some tools like Create grid. I've explored QT Designer ...
0
votes
0answers
43 views

OpenLayers 4: Load baselayer outside projection extent

I have a map that uses EPSG:3912. Then I have base layer from CartoDB. When I zoom out I see: My question is, if it's possible to have CartoDB layer loaded outside map extent (so that it fills white ...
2
votes
1answer
19 views

Incorrect Extent when importing images into ArcMap 10.7

I have 2 JPG images of the same pixel size and of the same square mile area, with identical JGW and aux.xml files. One displays correctly, the second does not. I am stumped, and it seems that ESRI ...
0
votes
1answer
52 views

OpenLayers 5 forEachFeatureIntersectingExtent Method Not Correctly Selecting Features in Circle or Polygon?

Using OpenLayers 5.3.3 Draw a circle Get the extent of the circle in the drawend event: const extent = event.feature.getGeometry().getExtent(); The try to determine the features in the extent using ...
1
vote
0answers
73 views

Mistake in Oriented Minimum Bounding Box Tool? [closed]

I have used the OMBB (Oriented Minimum Bounding Box) Tool in QGIS to calculate OMBBs around polygons. However, there must be a mistake in the tool as all the yellow boxes in the picture below are ...
3
votes
2answers
98 views

Setting map extent using offset in ArcGIS API for JavaScript v3.x

I am trying to set map extent using an offset because there is a panel floating over the left side of the map and sometimes, when I zoom to a feature extent, the feature is partly hidden behind it. I ...
1
vote
0answers
16 views

Making Leaflet tileLayer grid starts at specified lat lon

My app needs to show a map within a box defined by const corner1 = L.latLng(5.21244812011719, -96.5979537963867); const corner2 = L.latLng(34.086555480957, -55.4220504760742); const map ...
0
votes
1answer
14 views

Huge processing time for gdalwarp command extracting ROI by extents

I'm running the below gdalwarp command to extract a 1024 x 1024 ROI from a large raster which has Dimensions X: 34396 Y: 36707 Bands: 4 Input raster has previously been pan-sharpened and ...
1
vote
1answer
33 views

Bounding Box — Understanding (setting) Unit of Measurement in QGIS

QGIS Version 3.4 My initial problem (width and depth of parcel polygons) was solved by this post: However, when I run the process the Units of Measurement are unclear. (see below) Moreover, I want ...
1
vote
0answers
47 views

Subtracting rasters with different dimension, origin and extent in R

I have a large DEM raster from which I want to substract lots of smaller glacier rasters. Examples for the glacier rasters and a subset of the large DEM can be found here: https://drive.google.com/...
2
votes
1answer
47 views

Modify bounding box of GeoDataFrame

I have a GeoDataFrame which is a multipolygon and represents boundaries of a country: 0 MULTIPOLYGON (((10.10112 46.23346, 10.10099 46... Its bounding box/extent is: minx miny maxx ...
1
vote
0answers
46 views

QGIS WFS download data limit to window extend not functioning properly

The checkbox under WFS Server Connections setup that should control the amount of data that is going to be downloaded from WFS doesn't react as it should. Each time I tried to visualize the data ...
0
votes
1answer
38 views

Aligning pixels for using GSW as mask layer with Landsat 8 and Global Surface Water (JRC) Layer

I want to isolate some surface water areas on Landsat 8 images by using the Global Surface Water dataset in GEE as mask. After mapping both in the Editor I realized the positions of pixels of GSW and ...
0
votes
1answer
50 views

Getting bounding box of polygon

I'm having difficulties to get the bounding box of a polygon. My code is the following: def getBoundingBox(self): boundingBox = [] polygon = self.getVectorLayer() vertices = polygon....
4
votes
1answer
82 views

QGIS - zoom extent in project file?

I have about 600 folders with shapefiles always having the same filename per folder (which contain different data, of course). I've created one QGIS project file to open those shapefiles per folder ...
1
vote
1answer
49 views

Select by location tool Vs layer.getFeatures(QgsRectangle(xmin,ymin…)))

I can't make sense of the difference between: QGIS Select by location tool (Vector->Research tools->Select by Location") which gives the correct result :7 records match the extent: Creating a ...
1
vote
0answers
26 views

GeoServer - compute from native bounds does not work correctly [closed]

I am currently working on the topic GeoServer, so I am very new. For some layers it is not possible to calculate the BBox via the button "compute from native bounds". What can be the problem? What ...
1
vote
0answers
19 views

Changing pixel value based on polygon extent in PyQGIS?

I have a raster layer and a polygon layer. Polygon layer is inside of raster layer and it's extent is smaller than raster layer. Some pixels of raster layer inside the polygon have negative value. I ...
3
votes
2answers
91 views

Apply st_bbox() for each feature in sf

I have a set of polygons and I want to find the bbox for each polygon using sf. With st_bbox I obtain the bbox for the whole set of features but I want to obtain bbox for each feature. I try to use ...
0
votes
1answer
36 views

Printing Raster extents but not showing on console

print("Data {0}, xmin{1}, ymin{2}, xmax{3}, ymax{4}".format(ext.Xmin, ext.Xmax, ext.Ymin, ext.Ymax)) The line of code above is not printing out the extent for each raster in my dataset in the code ...
0
votes
0answers
41 views

How to calculate the bounding box of a map, given the pixel width/height of the container map & a bounding box which is included in the container map

How can I calculate the bounding box of a map, given the pixel width/height of the container map and a bounding box which is included in the container map? I know how to do this with Google Maps ...
0
votes
0answers
59 views

Clip the BBOX coordinates

Is there any control on BBOX to clip the coordinates before sending request to the GeoServer. The allowed coordinates are [-90, 90, -180,180]. The issue is when ZoomIN/out the BBox calculating the ...
2
votes
1answer
121 views

Creating minimum bounding geometry using the convex hull method in R

I would like to create a small enveloppe around a set of polygons that encloses around them. I would like to avoid using the bounding box function (example below) because it would be too big. Rather, ...
0
votes
1answer
104 views

Seeking ArcGIS Pro tool to get min and max latitude and longitude coordinates?

I am very new to ArcGIS Pro and have been struggling with getting the minimum and maximum latitude/longitude of an area in ArcGIS Pro. I am looking to get four coordinates of a rectangle that ...
0
votes
0answers
88 views

Determining if Raster and Polygon intersect using ArcPy?

I have a folder of rasters (.tif) and I want to determine which rasters intersect a polygon. The rasters are single band with a value of "1" while the rest of the extent has a no data value (coloured ...
-2
votes
1answer
67 views

Google Earth Engine: Use multiple bounding boxes to extract mean VI value

I am new to GEE with no prior Javascript knowledge. I am trying to find a way to use multiple bounding boxes (which are in bottom-left point x,y and top-right point x,y) from a csv file in order to ...
2
votes
1answer
138 views

Perform GDAL Tile Index Loop on list of PDF file paths

I am close to creating a vector extent/bounding box for each PDF exported from QGIS using PyQGIS. I'm using the algorithm 'Tile Index' to attempt imputing a list of file paths to PDFs. The code below ...
4
votes
2answers
124 views

Extracting Vector Extents of PDFs derived from QGIS 3 with PyQGIS

I'm interested to create a vector point layer representing the centroid of some 500-1000 PDF files exported from QGIS to find PDFs geographically rather than using file explorer. I would like to ...
1
vote
0answers
23 views

Map reference starting point shifted [duplicate]

I am loading an nc4 raster downloaded from a public dataset to QGIS and it first displays an error that the data does not have CRS. Then, it charges the map but the reference point 0 is shifted the ...
0
votes
1answer
83 views

Leaflet: flyToBounds location of bounding box returned by PostGIS

I want to simply center my map on the search result of a polygon using leaflet. I thought to return the bounding box, as this is closer to what I actually need. I want to use flyTo() I see a ...
0
votes
2answers
25 views

Recalculating Spatial Extent of Subset using ModelBuilder?

I have a feature class of areas that are discontinuous. I want to be able to select each site and then create a fishnet grid (2x2) for each site I specify. I am able to do this except one major step:...
1
vote
1answer
30 views

Determine If Polygon exists/intersects inside a BBOX

I have a polygon like so,(Lng, Lat) [ [-125.26367187500567, 56.580978332369256] [-125.39550781250242, 55.92182528855989] [-123.98925781250418, 56.2406121548556] [-124.51660156250529, 56....
1
vote
2answers
248 views

Coordinates of image corners for ImageExtent in Openlayers 5?

It is possible to get the coordinates of the four corners of the image, given the center of the image coordinate? or the bottom left and upper right corners? Currently, I am center the map in the lat/...
0
votes
1answer
52 views

Getting maximum extent of 2 different layers for map display using PyQGIS?

In the QGIS 3 layout, I would like to display two layers and for this I need their combined maximum extent. So far I've got: import os import processing from qgis.core import * from qgis.gui import * ...
1
vote
1answer
40 views

Getting non overlapping bbox in OpenLayers?

I have tree bbox as follow: bbox 1, bbox 2, and bbox 3. Now I want to get Final bbox from bbox 1 in OpenLayers 5. How?
1
vote
0answers
127 views

Extracting bounding box from the polygon geometry in OpenLayers

Suppose I have a geometry like below: POLYGON((8744004.877693035 1958621.044138512,8744013.76051175 1958620.4469742286,8744019.582863515 1958613.8781671105,8744018.98569923 1958611.3402189056,8744015....
2
votes
0answers
46 views

Obtaining extents of each data-driven page using ArcPy?

I have a set of index polygons (rectangles) that vary in size and orientation on which data-driven pages are based. I am looking for a method that would give me extents Xmin, Xmax, Ymin, & Ymax ...
1
vote
0answers
49 views

Limit custom tiles to certain extent in OpenLayers

I want to fit my custom tiles at a certain region. For example let's say i have custom tiles for a certain country (example: USA) and I am using OSM or anything at all. How do i make sure that my ...
1
vote
1answer
40 views

Bounding box of S-57 ENC chart?

Is there some standard way of obtaining bounding box of an S-57 chart, e.g., for one downloaded from https://www.charts.noaa.gov/InteractiveCatalog/nrnc.shtml?
1
vote
1answer
54 views

API that can give the latitude and longitude ranges from the address

Is there any API available that can get the latitude and longitude boundaries from the address. For example if we provide: 12380 Sunnyvale avenue, CA, 90005 Can we get the latitude minimum and ...
0
votes
1answer
140 views

Simple condition on rasters with different extents, R

I have multiple raster objects, with the same resolution but slightly different extents. I have use the following function in order to reclassify them and now their values are between 1-6. What I ...
1
vote
1answer
134 views

Crop multiple rasters using map or mapply?

I have a folder of rasters with slightly different extents. I would like to apply crop to the whole list of rasters. I'm trying to teach myself how to use the purrr map family, but I can't get that or ...
1
vote
0answers
34 views

Raster equivalent of “Recalculate Feature Class Extent”

Using Arc Desktop 10.7, I create an output raster using the Extract by Attributes tool. However, the output raster retains the same x/y spatial extent as the input raster, even though its pixels ...
1
vote
1answer
108 views

QGIS XYZ Tiles extents / bounds?

I have added a online tile source in the 'XYZ Tiles' option, and added it as a layer, which works fine. But im trying to understand where the extents shown in the layer properties is coming from? When ...
2
votes
1answer
86 views

Using Google Maps Restricting Bounds API with ArcGIS JavaScript API?

I am trying to make a map with ArcGIS 3.29, but in my map I need a bounding box. The ArcGIS API does not have a bounding box function, but the Google Maps API does. What I am having trouble with is ...
0
votes
0answers
15 views

Fetching exact map image using edge co-ordinates using HERE and JavaScript?

I'd like to be able to fetch an exact map image using the edge co-ordinates. For example: LatMin: 51.1474 LatMax: 51.1789 LngMin: 1.8262 LngMax: 2.7185 This is for a web application so I am using ...
1
vote
1answer
59 views

ArcGIS JavaScript 3.28 extent not working

I'm trying to get an extent to work on a web map app but keep getting an error when trying to pass the extent parameter: <!DOCTYPE html> <html> <head> <meta http-equiv="...
0
votes
1answer
109 views

Creating bounding box in ArcGIS API for JavaScript?

I am trying to create a bounding box for my map in ArcGIS 3.28. I want the bounding box to stay in a given area based on the coordinates given. I found a class called Extent in the API Reference that ...
0
votes
0answers
36 views

“Out of Bounds” CAD-originated shapefiles unable to georeference

I'm trying to import several polyline files from an AutoCad drawing into ArcMap. I keep running into an "out of bounds" error when trying to georeference the CAD layers to where they should be. I don'...
1
vote
1answer
49 views

Extracting {{bbox}} value of entire window in Overpass Turbo

I am using Overpass Turbo, quite a nice tool, but I want to extract the bbox values and use them in an osm-python-tools query. Oddly I don't see any way to get the values of my current bbox, I don't ...