Tagged Questions

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

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) ...
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 ...
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 ...
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 ...
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 ...
2k views

How to compute the bounding box of multiple layers in lat/long?

I am writing an application to performance test all kinds of map services, primarily AGS 9.x, AGS 10, and WMS 1.x. Part of the application involves generating random bounding boxes for individual ...
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 ...
6k views

Bounding box for PostGIS table

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

How to calculate the optimal zoom-level to display two or more points on a map

We want to display several markers on a static map and want to calculate the optimal zoom-level like Google Maps does. We already calculated the bounding rectangle and the centerpoint of the map but ...
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 ...
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 --------------------...
305 views

Crop OpenStreetMap data retaining long features

When I crop OpenStreetMap data using Osmosis with the --bounding-box option, it seems to only give me nodes and ways that are fully contained within the bounding box. There are several long highways ...
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 ...
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 ...
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 ...
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 ? ...
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 ...
449 views

Find GPX files which contain tracks located in a specified bounding box

I have a bunch of GPX files and I want to find out which files contain tracks located in certain geographic extent, e.g. files containing tracks in Pennsylvania. Also, the inverse is also useful too, ...
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 ...
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 ...
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 ...
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 ...
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 ...
374 views

Bounding box argument ignored when displaying raster using mapserver

I am trying to display a raster image with Mapserver using different bbox arguments in a mapserv cgi request. I have been trying to specify different bbox arguments to "crop" the raster display, but ...
3k views

Getting a Bounding Box in Latitude / Longitude using PostGIS shp2pgsql

Using the PostGIS shp2pgsql -s 4326 ... I generated the sql file and created my spatially enabled table. When executing my query: select box2d(ST_extent(the_geom)) from feature_data; I'm returned ...
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 ...
811 views

How do i find out geometries for areas?

I was wondering if anyone could help me out with a website which I can use to get geometries for a area. What I'm looking for is something like google maps where I can drag a cursor over a area of the ...
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 ...
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 ...
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 ...
314 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 ...
135 views

Bounding box for app engine?

I'm using python 2.7 and app engine. To do bounding box we used geomodel but it executes more then 5 seconds in table with 350 records. It's to slow. Can you please suggest better solution ? Is ...
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 ...
2k views

C# library for bounds based geometry search

I am searching for C# library which has code that builds spatial index in memory based on geometry bounds and enables fast searching for all geometry inside given bounds. I prefer free library.
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 ...
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 ...
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 ...
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?...
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 ...
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 ...
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 ...
334 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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...