Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
1answer
17 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 ...
0
votes
1answer
16 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
22 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
33 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
34 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
25 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
27 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
51 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
25 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
33 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
19 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
57 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?
0
votes
1answer
29 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
27 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. ...
0
votes
0answers
71 views

Error in compareRaster(rasters) : different extent

I'm preparing independent raster for LR model: the resampled rasters files: Aspect=raster("resampleData/Aspect_re.tif") Curvature=raster("resampleData/Curvature_re.tif") Elevation=raster("...
2
votes
1answer
29 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
14 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/...
1
vote
0answers
39 views

How to change extents in QGIS?

I'm trying to learn QGIS. How do I change the Extents (Highlighted in green below). I tried to make a custom CRS, but I couldn't figure out a way to change these.
0
votes
1answer
170 views

Openlayers 4 and View Extent

I have been working on openlayers 4 and specifically my question is regarding limiting the extent the user sees, let's say 2 km by 2km is the viewing area, this configuration was done using the ol....
2
votes
1answer
18 views

Start ArcGIS Web Map Zoomed to Query

Can you have an ArcGIS Online map, you know one that you share and embed on a web page or link to, automatically start at an extent that is defined in a query of some sort? Ideally it would be great ...
1
vote
1answer
84 views

Making sense of coordinate systems in retrieved data from a CSW

I am invoking a CSW server (Catalog Service for the Web) and I am trying to draw the bounding box of each record in the front end of my application. One of the problems is that the coordinate system ...
0
votes
1answer
43 views

Creating animations with goTo and extents using ArcGIS API for JavaScript?

I am using the ArcGIS API for JavaScript. Right now, I am trying to change the extent of a view dynamically. <script> var view; var new_ext; require([ "esri/views/MapView",...
0
votes
1answer
35 views

Why is ArcPy Describe Extent overshooting the extents?

Why is arcpy.Describe(file.shp).extent overshooting the extent? Screenshot below. I have confirmed there are no tiny lines lingering out at the edges. I'm in UTM coordinates. extent = arcpy.Describe(...
0
votes
1answer
64 views

Using Extent and SpatialReference with ArcGIS API for JavaScript?

I am trying to display an ArcGIS Map on my webpage. Whenever I try to use the 'extent' Attribute next to the 'center' and 'zoom' Attributes, I get the following error: GET https://js.arcgis.com/4.8/...
0
votes
1answer
25 views

OpenLayers 3, PostgreSQL, WFS: Extent jumps back to initial extent if zoom out too far

I'm working on an app using OpenLayers 3 with PostgreSQL/PostGIS tables and views, and an Esri basemap. The web app loads a set of features using an array of attributes from PostGres table (a view) ...
1
vote
0answers
161 views

Generating a single geohash for a bounding box in python

the following code generates bounding box for the coordinates that are given in the input but currently it generates geohashes for all the 4 coordinates of the polygon. i want to be able to generate a ...
1
vote
2answers
89 views

Find the extent of a GeoJSON FeatureCollection

How can I get of the extent of all features within a GeoJSON FeatureCollection with Python 3? One extent for all features, not one per feature. The Feature collection includes multiple points ...
0
votes
1answer
47 views

How to prevent rasterFromXYZ from changing my raster extent?

I've created a new raster derived from a first one in which I set a specific extent. e <- extent(-122, -18, -56, 14) 1st.raster <- crop(raw.raster, e) This first raster is used as a mask for ...
4
votes
1answer
94 views

SQL / PostGIS: Expanding polygons contained inside another polygon until one vertice touches bounding box

We have a problem that we are not quite sure how to approach, we have a number of polygons contained inside a larger bounding polygon, We need to expand these internal polygons as much as possible but ...
0
votes
1answer
43 views

Cropping a point cloud with PDAL also strips it off

Description of the problem: When cropping a .ply point cloud using PDAL pipeline: { "pipeline":[ "input.ply", { "type":"filters.crop", "bounds":"([52435....
0
votes
1answer
114 views

How to create a polygon from a Print Composer or Print Layout map extent in QGIS?

How do you create a polygon from a QGIS Print Composer or Print Layout map extent (i.e. a polygon that is the exact area shown in a map within a print composer/layout)? Ultimately I would like to do ...
1
vote
0answers
136 views

Extract Point Cloud bounding box with PDAL in Python?

Data: I have a point cloud file, let call it "pc_file" (it's not a .las but a .ply file ; https://en.wikipedia.org/wiki/PLY_(file_format) ). Goal to achieve: I am searching a fast way to extract ...
0
votes
0answers
40 views

Openlayers v5.1.3. zoom extent [duplicate]

I have searched the forum looking for a recent example where I can zoom to the feature extent of a Geojson layer using OpenLayers v5.1.3. I have already created an example below of a Geojson layer, ...
0
votes
1answer
22 views

Getting dataframe extent from a polygon and exporting to PDF issue

I created a script to get the extent of a polygon, apply it to the data frame extent, and then export the layout as a PDF. However, I'm not getting any errors but the script is printing out at a ...
0
votes
2answers
33 views

Adjusting the extent of raster

I have a netcdf file which I converted using Make NetCDF Raster. Unfortunately, the x and y are not, I think, properly define. One way to solve this is by correcting the extent (I am not sure here) ...
0
votes
2answers
49 views

Clipping a raster with shapefile and export the raster with shapefile extent

I am clipping a raster file with a shapefile grid and I want to save each raster subset individually with the polygon spatial extent. To select the extent of each polygon, first I select the polygon ...
1
vote
0answers
44 views

QgsMapCanvas.setExtent() has no effect when loading and rendering many layers

The following script is intended to load a pile of vector layers (50 times the same) and after loading to set map canvas center and scale: from qgis.core import QgsProject, QgsVectorLayer, ...
0
votes
0answers
48 views

How to properly implement EPSG: 27700 using vector tiles in Openlayers 4 and Geoserver

I am trying to get pbf vector tiles which are served by Geoserver to properly render in Openlayers 4 using the code below: <!DOCTYPE html> <html> <head> <title>Vector tiles&...
0
votes
0answers
59 views

Fixing incorrect raster extent?

I have georeferenced rasters in ArcGIS based on a raster with the wrong extent. As a result, not only is the extent much larger than it should but the cell size is 100x greater, though the coordinate ...
0
votes
1answer
61 views

Why does setting extent in OpenLayers end up with an adjusted extent?

If I run the following code in OpenLayers 3... console.log(map.getView().calculateExtent(map.getSize())); map.getView().fit(map.getView().calculateExtent(map.getSize()), map.getSize()); console.log(...
0
votes
1answer
85 views

PostGIS - Bounding Box

I have given two co-ordinate pairs [{long, Lat}, {Long, Lat}] like this i have several co-ordinate pairs.I need to create bounding box with each co-ordinate pair. Now i have one co-ordinate pair[{...
0
votes
1answer
60 views

Finding the “square” bounding boxes of a country

I want to find the square bounding boxes that cover a country, of different sizes. First off, I know that they won't really be square, but just going by the numbers they can be said to be. The main ...
0
votes
1answer
54 views

Raster with wrong extents when using Polygon to Raster

I am trying to use the "Polygon to Raster" tool on a building extents polygon file to create a raster with the exact extents and cell size as an existing flood depth raster. Even though I have added ...
2
votes
2answers
100 views

Buffering Bounding Boxes and/or Polygons QGIS

I just created a Bounding Boxes layer using a layer of oddly shaped polygons as the input. The Bounding Boxes layer has a bunch of symmetrical rectangular polygons on it now, all oriented parallel ...
1
vote
2answers
112 views

Bounding Boxes in QGIS 3.0 Girona

I have a polygon layer with multiple polygon features drawn on it. I need a tool that will draw a bounding box around each polygon feature individually. Right now everything I try in the tool box ...
3
votes
1answer
526 views

Convert polygon bounding box to geodataframe?

I have a pandas dataframe that contains bounding box information for tiled raster data in the following format. left bottom right top 466583.40921 3135701....
1
vote
0answers
27 views

Syntax using osmosos with bounding box

I am trying to extract a region from a .osm.pbf file I have and write the output as a .osm.pbf file. I'm not sure on the syntax however to achieve this result. I have continued from an example I found ...
0
votes
1answer
107 views

Accessing four extent values of layer using ArcObjects in C#?

How can I access the four extent values of a layer shown in the below image using C# in ArcObjects? Below is the code that i am using to achieve it but "AreaOfInterest" is null. public ...
0
votes
0answers
68 views

Resetting Layer Extent in MXD file using ArcObjects and C#?

When I change data source properties of a layer using ArcObjects in C#, I lose the extent set for that layer. How can I reset the layer extent? Below is the code in which I am resetting database ...
0
votes
1answer
99 views

Features show on data view, but not in Attribute table?

There are 966 points for tree data that was collected in the field. When I try to open the attribute table only 2 points' data show up. I've tried to create layer from selected, because when I choose ...