Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
40 views

PyQGIS (3.6.3 Noosa) Why is self.iface.mapCanvas().setExtent() being overridden in plugin?

I am writing a plugin that first adds the Google Imagery XYZ tile layer and then adds various other layers - some from a GeoPackage and others by creating their geometry in PyQGIS. The last function ...
1
vote
0answers
24 views

Bounding box algebra in PostGIS?

Are there efficient ways of finding the union, intersection, and difference between two bounding boxes (box2df)? I know that this can probably be done by first converting the bounding box (BOX2DF) to ...
2
votes
0answers
29 views

Extrapolating raster to specific area?

Can I extrapolate a raster with the extent of North America (current geography) to the shape of the continent during the Last Glacial Maximum? I would want to extrapolate pH-values to the additional ...
1
vote
1answer
27 views

How to reproject a raster based on another raster when the datum is not said and get the same extent?

I am working with two rasters. I am trying to reproject r1 the same way as the raster r2. Rasters are available here r1 class : RasterLayer dimensions : 30286, 58025, 1757345150 (nrow, ncol,...
1
vote
1answer
26 views

How to get extent of rasters in folder ArcGIS

I have 100 raster image in a folder and want to get extent of all raster in ArcGIS. How to get extents of all raster in one go or write in text file? For single raster I used this is working fine: ...
0
votes
0answers
17 views

Shapefiles not lining up - defined projection and re-projected [duplicate]

I have shapefiles created from GPS coordinates from three different regions within a province in Canada. The raw data coordinate systems seem to me to match and when displaying xy coordinates from the ...
0
votes
0answers
22 views

Raster layer not clipping to polygon boundary and yielding block extent in ArcMap?

I am using ArcMap. I want to graphically display my NDVI distribution, but I had to convert my NDVI raster layer from continuous values to integer in order to view the attribute table (I used the ...
0
votes
1answer
23 views

Batch processing of GDAL clip function

When I am trying to batch process GDAL clipping in QGIS 2.18 with 30 raster files I get the following Error: GDAL command output: ERROR 1: Cannot compute bounding box of cutline. My ...
0
votes
0answers
35 views

WMS not displayed in ArcGIS Online?

I tried to access the WMS request through the ArcGIS Online which is published in geoserver. The WMTS request of the same data is coming fine without any issues. When i checked the geoserver log i'm ...
1
vote
1answer
33 views

Polygon from shape extents in QGIS

In QGIS 3.4 is there a tool similar to the Extract Layer Extent but instead of a bounding box, it creates polygons? I have groups of lines representing a network of roads and I want to show the ...
1
vote
1answer
48 views

Georeferencing non-projected pdf using bounding box in FME?

I have two similar looking and extend map files. Pdf -map (N4443) with vector but not projected and the raster tiff map (N4443) with projection. I need to georeference pdf-vector objects using tiff -...
1
vote
2answers
41 views

Iterating over a layer and make MBR for every feature with QGIS

I have a layer with about 20000 polygons in it. The make extent layer command just draws the MBR (Minimum Bounding Box) for the whole layer. I want to make MBR for each of them separately. Is there ...
0
votes
0answers
30 views

Matching Mollweide extent?

I'm trying to match two rasters to same size, so i can do cell to cell analysis on them. The first cell That I'm trying to match is in Mollweide projection, with 250 m resolution. Here is the gdalinfo ...
0
votes
0answers
90 views

Extent of shapefile in meters instead of decimal degrees QGIS

i'd be thankful for your help. My QGIS-project has the CRS WGS 84 EPSG 4326 and so does the shapefile I created. The coordinates on the edge of the window however shows, I think, meters, although I ...
0
votes
1answer
39 views

Bounding box as a 4-tuple - south/west/north/east order?

We need to pass a bounding box as a 4-tuple and we cannot pass named arguments. I've searched a bit at found that different APIs use different order of lat/lon and different corners (northwest/...
1
vote
2answers
38 views

Measuring width of polygons, which is wider than long

Within my project I am trying to quantify and compare different submarine landslides with ArcGIS. Therefore, I created a polygon shapefile and mapped the spatial extent of each landslide. Now I want ...
1
vote
1answer
59 views

PostGIS SQL Query Filter by Bounding Box

I have the following query on a PostGIS Database SELECT row_to_json(fc) FROM ( SELECT 'FeatureCollection' As type, array_to_json(array_agg(f)) As features FROM ( SELECT 'Feature' ...
1
vote
1answer
23 views

Layers Properties - Extent - Custom Extent [closed]

If I were to set up a custom extent on several global data layers using a smaller geographic region (i.e. North America), will Arc still "draw/process" that data even though it is hidden outside my ...
2
votes
2answers
64 views

Duplicate points and bounding box in PyQGIS?

I am trying to find all points in a vector layer that do not have a duplicate point. To do this, for each point I create a list of features that intersect its bounding box ('candidates') then check ...
2
votes
1answer
44 views

Check 2 Extents with Disjoint in Arcpy - Wrong Result

I'm now facing a problem using Disjoint in Arcpy to check if 2 extents are intersected. I have 2 extents like this: Ext1: 33206887.500051 5890587.49999999 33460887.500051 6060887.49999999 NaN NaN ...
0
votes
1answer
70 views

Unable to load file using gdal.Open

I am new to GDAL in Python (and Python in general), so as a way to begin learning, I am trying to perform basic functions such as getting extents from a single raster and printing them out. However, ...
0
votes
1answer
42 views

Public site WMS bounding box seems wrong

I'm having an issue with several WMS feeds that i'm looking at, where their bounding box seems wrong. I think i would assume the issue is with the provider, but there are multiple enough that i think ...
1
vote
1answer
272 views

How to get extent of Image layer in OpenLayers?

Considering the code below (which uses openlayers and Viglino's ol-ext), how do I get the extent of the geoimg? var map = new ol.Map({ target: 'map', view: new ol.View({ zoom: 18, center: ...
-1
votes
1answer
372 views

Python - Creating a shapefile from a bounding box coordinates list [closed]

There is already few existing questions about this topic, but I unfortunately did not find something that could fix my problem... I have a point Lat, Long coordinate i.e. Lat= 10 and Long = 10. I ...
0
votes
1answer
54 views

Changing decimal digits of extent in raster layer using Python in QGIS

I want to change the decimal digits of the raster layer extent in QGIS 3.4.3 with Python, so it ends with 0.5. My code is as follows: input = vlayer output = "Directory" extent = vlayer.extent() ...
0
votes
0answers
34 views

Interpreting meter values of extent using ArcGIS Pro?

I am using ArcGIS Pro application to create a map and add a single polygon feature class onto the map. As shown below, I use bold polyline to outline the boundary of the polygon and click "zoom to ...
1
vote
2answers
39 views

QGIS Print Composer align poly extents to page edges

Is there a posibility to align the edges of an polygon (in my case these edges are also the total extents of the layer) to the edges of the map item? I want to keep the specific page dimensions. edit:...
1
vote
3answers
99 views

Finding feature extents (not layer extent) in QGIS?

How can I find feature extents for each multipolygon in QGIS? for feat in layer.getFeatures(): I want to calculate extents for each feature here.
3
votes
1answer
112 views

Getting source bounds when filtering LAS using PDAL?

I'm using PDAL to filter out non ground points to create a DTM along with a DSM also made through PDAL to create a Canopy Height Model using this method. My workflow looks like this. #!/bin/sh # ...
0
votes
1answer
79 views

Displaying bounding box polygon from CSV using ArcGIS Desktop?

I have a data file (.csv) with a minimum and maximum longitude and latitude. These 4 fields (roughly a few thousand rows) make up a bounding box. However, I am unsure of how to get this data to be ...
0
votes
2answers
126 views

Changing Leaflet Base CRS using Proj4js

I am trying to change the CRS of a web mapping service in Norway. The projection is EPSG:25832. Here is the WMTS service: https://kartkatalog.geonorge.no/metadata/norge-i-bilder/norge-i-bilder-wmts-...
4
votes
2answers
154 views

QGIS Joined Layer not displaying points visible on pre-join layer (No Extent)

I have a shp file which is the output of the Toolbox Check validity tool in QGIS 3.4.3 The points display for me correctly but if I then join the layer with a csv attribute using the toolbox Join ...
0
votes
0answers
55 views

How to set the extent of a PostGIS geography table?

I have multiple geography tables in PostGIS database. All of them have extents of (-180,-90;180,90), probably in their metadata, which makes editing difficult. I'd like to set the extent to exactly ...
0
votes
0answers
142 views

QGIS 3.4 layout: fix extent and scale, let size adjust automatically

I'd like to create maps with a defined extent and scale. Logically, the map size has to adjust accordingly. Since I will be using the maps as pdfs (and not on paper), this won't bother me. Is this ...
1
vote
1answer
92 views

Set extent in a webmap Esri

I'm creating a storymap from a developers tutorial I found on Esri. The point of the tutorial is to insert an additional reference map. Everything is working well but I want the extent to closely ...
1
vote
1answer
49 views

Possibility to use polygon as global area parameter for overpass query

I have been trying to provide a polygon with an array of coordinates as a global parameter for my overpass query. But the query is through syntax error. [bbox:poly:"50.7 7.1 50.7 7.2 50.75 7.15"]; ...
0
votes
0answers
27 views

Working with a small spatial extent from a large dataset in ArcMap

I am currently working with large amounts of forest data where surveyors and ecologists measure and assess the quality of the vegetation in the field and send the result as CAD files on a daily basis ...
0
votes
2answers
54 views

Why does the Extent of NIR Band 8 Landsat image not match other bands, even when cropping to a specified extent?

I'm trying to load and then stack four bands 2,3,4 and 8 RGB and NIR from Landsat images. I have downloaded and extracted them and they are in .tif format. # loading the bands B2 <- raster("./...
1
vote
1answer
59 views

QGIS Custom Python Function to Return Current Extent QGIS 2.18LTR

Related Question Charts and Graphs that only display features in current extent Trying to write a custom function to return the current view extent. The below code is what I wrote based on the QGIS ...
1
vote
0answers
103 views

Accessing QGIS Interface in standalone PyQGIS script?

I try to set the extent of my QgsProject to the extent of one of the layers in it. I know how to do that with qgis.utils.iface but it works only when the script runs inside QGIS' Python console. What ...
2
votes
0answers
77 views

Convert QgsVectorLayer.extent() to EPGS:4326

Many APIs such as overpass turbo require bounding box notation like (x_max, y_max, y_min, x_min) in EPSG:4326. However the method QgsVectorLayer.extent() returns values in the source's CRS. A possible ...
1
vote
2answers
87 views

Seeking border of Netherlands to use in ArcGIS Pro?

I am a beginner in ArcGIS Pro. I asked a question before (Expanding IDW interpolation to borders of country in ArcGIS Pro?), but I feel like I do not understand the basics enough, so a more basic ...
0
votes
0answers
38 views

Composer map needs to reset extents each time

I have several maps that are regularly updated and am now having a problem that has only recently begun - each time I reopen a composer to re-PDF my maps, I have to reset the map extents. All of my ...
0
votes
1answer
189 views

Get a bounding box of a geometry that crosses the antimeridian using OGR

I'm trying to get a bounding box of the geometry that crosses the antimeridian using OGR: from osgeo import ogr geom = ogr.CreateGeometryFromJson('{"type":"MultiPolygon","coordinates":[[[[-180.0,-40....
0
votes
2answers
147 views

Raster operations in a raster list in R

I have a raster list (21 in total) S1 that have the same projection, resolution but not exactly the same extent. Due to this difference, I cannot stack them without solving the extent/dimensions ...
0
votes
2answers
92 views

Determining flood extents based on a daily flow? [closed]

I have a DEM raster and daily average flows (e.g., 50Ml/day). And I want to determine how far the water extent goes when the flow accumulates for 7 days based on 50 ml per day?
2
votes
1answer
539 views

Getting bounding box from Point type GeoDataFrame to getting data from Osmnx

I've a point geodataframe which has only point features inside of it. fishnet_Id ... geometry 0 0 ... POINT (403486 4540640) 1 ...
1
vote
0answers
34 views

Setting an identical map extent for all systems resolutions with OpenLayers

I want to see my map extent as identical in all resolutions (17 inches, 20 inches etc). If I set centre and zoom together, the map extent is varying with respect to different machine resolutions. ...
2
votes
1answer
178 views

Querying for extent of layer in arcpy.mp?

We're migrating automated mapping scripts from ArcGIS Desktop to ArcGIS Pro — Python 2.7 to 3, arcpy.mapping module to arcpy.mp module. All these scripts iterate through a loop to select various ...
0
votes
0answers
99 views

MS SQL Server STEnvelope() performance

Using MS SQL Server 2012, when we write a query with select GEOM.STEnvelope() from table where table holds approx. 4000 native SQL Server line geometries of type geometry, with 2/6/180 points min/...