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.

2
votes
2answers
35 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
31 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
15 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
22 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
55 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
53 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
31 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
29 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
27 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
48 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
78 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
35 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
77 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
140 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
32 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
53 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
32 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
30 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
24 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
38 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
43 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
40 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
47 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
61 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
28 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
68 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
48 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
69 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
113 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
30 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
51 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
37 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
41 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
522 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
24 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
88 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
61 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
36 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
110 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
32 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
221 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
183 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
55 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
102 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
73 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
177 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 ...
2
votes
1answer
262 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
47 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
25 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
37 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) ...