# Tagged Questions

The smallest rectangle, parallel to the coordinate axes, enclosing a given figure.

28 views

### Making perfect rectangle in QGIS [duplicate]

I want to be able to set the height and width of my rectangles, as well as the angles. I have been trying the Rectangles Ovals Digitizing plugin, but I can't seem to make it do anything (besides turn ...
2k views

### Mercator: scale factor is changed along the meridians as a function of latitude?

"In Mercator projection the scale factor is changed along the meridians as a function of latitude" How to calculate the Mercator scale factor as a function of the latitude in decimal degrees ? ...
34 views

### Finding the Map-Tiles(z,x,y,tile_data) in a given Bounding box and zoom level

I have this information:For Ogun State Nigeria from http://www.maphill.com/nigeria/ogun/ South 6° 18' 6" N North 7° 59' 23" N West 2° 40' 6" E East 4° 34' 47" E I have map tiles @ different ...
2k views

### Is there a website that will let me see add markers and bounding boxes on top of a street map?

Is there a website out there that will let me markers (lat/lon) and bounding boxes (minimum / maximum lat/lon) and let me see it overlayed on top of Google Maps (or OSM, or Bing, etc)? I'm not really ...
26k views

### How to find the minimum-area-rectangle for given points?

The following is another problem that I am working on it these days. As you see in the figure, (BTW, I tried to make it self-presenter) the question is: How to find the minimum-area-rectangle (MAR) ...
68 views

### R code to find the smallest bounding box with arbitrary orientation

How can I devise an R-code that can derive a rectangular bounding box (with 90-degree angle on each corner) for a set of points with arbitrary orientation? e.g. if the 2 longer edges have a 45-degree ...
3k views

### OpenStreetMap Neighborhood Boundaries

Is it possible to download neighborhood boundaries from OpenStreetMap? I see on maps that they often indicate neighborhood names; is there a way to retrieve their coordinates and boundary polygon ...
96 views

### BoundingBox key in Geo API of Redis

I am very happy so see that Redis now offers a Geo API I would like to host a service where, given a latitude-longitude pair, I retrieve a bounding-box (of OSM) from a pgsql query. Since I expect ...
45 views

### A bounding rectangle for two lat longs points in .NET

I'm trying to figure out how to build a bounding rectangle around two lat long points using a .NET library. I've tried playing with NTS but I haven't found anything that does what i want it to. I ...
36 views

### Find Minimum Bounding Box for a set of coordinates [duplicate]

I am working with GPS tracks (lat/lon values) and my goal is to compute the minimum bounding box for a small geospatial library I am working on. The datasets are not huge, maybe a couple of tens of ...
74 views

### Bounding rectangle of a geography

How to get a bounding box (in the form of a Polygon, or anything else where it's easy to extract the corner coordinates from) of a given Geography item? Something that would look like: SELECT ...
99 views

### Clipping subpart of data in QGIS?

I have a geodatabase that I am adding to a QGIS project. I read the documentation (below) but I don't understand what parameters I use for "a.the_geom" and "b.geom". Is there a way to clip with a ...
60 views

### creating a right angled rectangle on google maps from a line

I have an application where the user draws a line, then automatically the software should create a rectangle where the line intersects the midpoint of two adjacent sides of a right angled rectangle. ...
100 views

### Fix Polygons to be true Rectangles

I got a featureclass polygon of 4 point polygons that delineate the coverage area of a georeferenced image; these polygons will later be map sheets. Anyway I discovered some of them are not true ...
5k views

### PostGIS: Find points that lie within a set of coordinates

I have a PostGIS db, and I want to find the points that lie within some region (a bounding box). I have two sets of coordinates, from which I can get all four rectangle points that form the box (if ...
88 views

### PostGIS 3D bounding box query that envolves all 3 axes (xyz)

I have some experience with PostgreSQL, but not with PostGIS, and for the life of me I can't make my bounding box take the Z axis into account. I have a points table with XYZ columns. I add another ...
156 views

### bounding box - generate coordinates

I will be using mongodb database which supports data on an Euclidean plane (not spherical). I will be performing queries which return all points within a box. For the box I need to specify the upper ...
2k views

### How to calculate the size a bounding box?

What formula could I use to calculate the size in Kilometres of a bounding box based on a given Southwest latitude/longitude and a Northeast latitude/longitude points? The bounding box format is ...
96 views

### OpenLayers 3 don't go beyond given coordinates

In Openlayers 3 Max Extent there is mentioned how to set a max extent. But how can I set coordinates in such a way that it is not possible to drag the map beyond the some given coordinates? Extent ...
44 views

### Get Minimum bounds of 4 LatLon

I have 4 Lat Lon positions. They represent a (rotated) rectangular region. But due to some calculation errors, sometimes they are not proper rectangular. I want to convert those into (rotated) ...
19k views

### Select bounding box using postgis

I want to create a query to select all ways and their nodes that exist within a bounding box using postGIS. The bounding box shall includes all details as osmosis "--bounding-box" command will ...
4k views

### How to know if a point is inside a rectangle on the map?

I have four points that represent a rectangle (a,b,c,d). I got these points from mobile GPS. In my database I have this table of business locations: bussId | longitude | latitude --------------------...
315 views

### How to check if a point is within bounded rectangle from Java

I make an AJAX request to retrieve data from a mysql database. I add the data to google.maps.Data layer as geojson. I would only like to load the data based on the viewport. To obtain the viewport ...
39 views

### Better-matching bounding box by using collection

I am looking for a way to approximate a geographic region with a few bounding boxes. I know I can get a single box to cover the whole region, but some of my shapes are quite strange (gerrymandered, in ...
146 views

### How to calculate a missing (one or more) lat/long value of a bounding rectangle?

Is it possible to calculate an unknown (one ore more) latitude/longitude value of a bounding rectangle. The log file that I need to process provides a pair of lat/long values for Upper left and Bottom ...
161 views

I have extracted the bbox coordinates from a shapefile and want to create a hyperlink for google maps respectively OSM. When you click on the hyperlink the map should be zoomed to the bbox extend and ...
435 views

### Postgis create polygon extent/convex hull from spatial table

Please help, I have a polygon layer representing building footprints. I want to create new view in postgis that will contain rectangle representing bounding box and also another view that will have ...
6k views

### Bounding box for PostGIS table

Is there an easy way to get the bounding box for an entire table in PostGIS? Thanks
448 views

### Question Regarding Interpretation of Openlayers BBOX in 4326 Projection

I have a BBOX strategy in my Vector layer, which is sending HTTP GET Requests to my server in order to get the features I wish to display. The projection of the layer is EPSG:4326, so it is my ...
16k views

### How do I calculate the bounding box for given a distance and latitude/longitude

Hi need to be able to calculate a bounding box or circle for a Given WGS84 latitude and WGS84 longitude, and distance but have no Idea where to start! The distance from the start lat Lon would be 10KM ...
129 views

### Reading lines within Bounding box failed

I am developing an application to display OSM data. In my scenario I need to display the data for one entire country. So my approach is that I will load curresponding countries osm data to postGreSQL ...
4k views

### How to calculate polygon length and width using open source GIS?

How can I calculate the length and with of polygons using open source tools? By "polygon length" I mean the length of the longest line within the polygon (update: to be correct, I just need the ...
350 views

### How to get WGS84 lat lon bounds from a VRT file

I have vrt files generated using gdalbuildvrt that reference GeoTiffs referenced using the NZTM coordinate system. Is there an easy way to determine the bounds as WGS84 latitude longitude coordinates?...
86 views

### Divide a Square to a serval equal squares using Acrgis [closed]

hi i'm looking for an algorithm to split a square to a SEVERAL equal squares: i have only : x min , y min x max , y max please see picture (not valid picture only to describe problem): any ...
435 views

### How to collect tweets outside a given bounding box?

I checked the twitter API here. I know how to get tweets in United States within a bounding box such as: [-124.47,24.0,-66.56,49.3843]. How can I easily get all the tweets NOT in this bounding ...
183 views

### Plotting a point within a bounding box as a percentage of X/Y

I have two pairs of lat/long coordinates that represent the top left and bottom right corners of a bounding box. I have a third pair of lat/long coordinates representing a point within this bounding ...
2k views

### Center of a bounding box

I have bounding box coordinates of my shapefile (fetched from layer.GetExtent() Python with GDAL/OGR): (-38.6102467739459, -38.017601026186576, 33.01563382506067, 33.624945228091406) So I assume ...
285 views

### Find items within a Bounding Box

Not 100% sure if this is the correct place to ask my question so I apologise if it isn't. Also, I have very limited experience with GIS systems, so please pardon my ignorance if some of my terminology ...
3k views

### Zooming Google Maps to fit the extents of a Fusion Table layer

How can I zoom a Google Maps control to fit the contents of a Fusion Table layer? The layer only contains pushpin / marker point data. One method is to perform a REST query on the Fusion Table and to ...
202 views

### How can I find an OSGB six-digit code's bounding box?

How can I convert Ordnance Survey six-digit codes to the latlng bounding box of the related 1km grid square? For example, NH0325: according to Wikipedia this means a 1km square whose south-west ...
2k views

### How to find bounding coordinates (lat/long) for UTM zones?

I want to error check incoming lat/lng points by checking if the point resides within the given UTM zone. (This would work for the data im using because sometimes there is a missing sign or lat/lng is ...
451 views

### Efficient raster sampling of billions of polygons (bounding boxes)

How can a raster be computed efficiently (in Python), given a set consisting of billions of bounding boxes (read sequentially from a file), and given that the raster values for each cell should give ...
335 views

### Where can i find oceanic borders defined as a set of lat/long points?

I'm trying to write some code that, given a latitude and longitude, will report which ocean (if any) this point is in. Is there a public resource available that defines the borders of the oceans as a ...
727 views

### How to create a worldfile by bounding box?

I need to create a worldfile from Bigmap Application. I've successfully to grab a pack of PNG tiles and the pearl app mosaicking all in one. The BigMap site shows the raster bounding box and util ...
226 views

### How to query latitudinal bounds on 95% of a polygon in PostGIS?

I'm going to say thanks in advance. I'm very new to GIS and this forum is a tremendous help. My simple questions have been solved; here's one that might be a little trickier. Given a polygon in a ...
359 views

### What components does OpenLayers.Strategy.BBOX require for compilation?

I recompiled OpenLayers with minimal settings, and now Vector layer, that uses BBOX strategy, stopped adding bbox parameter to the queries. What components do I need to add? This is the current ...
514 views

### Using CQL_FILTER BBOX on WMS layer causes ORA exception window SRID does not match layer SRID

I'm trying to limit WMS layer to a specific BBOX. mainLayer.mergeNewParams({ 'CQL_FILTER' : "BBOX(geom, 6541844, 5577147, 6584851, 5620154)" }); Which gives following exception in geoserver's ...
1k views

### Finding the minimum and maximum distance between an observer and a lat/lon bounding box

I have three points in geographic coordinates (latitude, longitude, altitude). One of the points represents an observer, above the Earth. The other two points define a bounding box. I'd like a ...