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

learn more… | top users | synonyms

5
votes
3answers
507 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 ...
1
vote
0answers
88 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 ...
1
vote
0answers
19 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 ...
2
votes
2answers
189 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 ? ...
0
votes
1answer
55 views

How to create GoogleMaps/OSM hyperlink for given bbox coordinates

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 ...
1
vote
1answer
89 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 ...
0
votes
0answers
63 views

Getting placemarks on map and setting bounds based on all placemarks

I'm trying to do what most folks do in the Google Maps API, and add a bunch of markers to a WWPanel and then adjust the map bounds to fit all Placemarks in the WWPanel view. How can this be done? This ...
1
vote
0answers
64 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 ...
1
vote
1answer
143 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 ...
0
votes
1answer
66 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 ...
1
vote
0answers
90 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 ...
0
votes
1answer
112 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 ...
0
votes
0answers
89 views

Filtering features in Bounding Box made from lat long?

I have a feature data which is based on lat/long. To show on the map, I convert them to east/nort. When dealing with Bounding box, I am getting co-ords is east/north, so I am converting from ...
4
votes
1answer
175 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 ...
1
vote
3answers
263 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 ...
1
vote
1answer
185 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 ...
1
vote
1answer
792 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 ...
3
votes
2answers
344 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 ...
1
vote
2answers
117 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 ...
2
votes
2answers
459 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 ...
5
votes
3answers
2k 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 ...
1
vote
1answer
533 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 ...
15
votes
4answers
10k 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 ...
3
votes
1answer
202 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 ...
1
vote
2answers
343 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 ...
28
votes
4answers
8k 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) ...
2
votes
1answer
1k 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 ...
0
votes
0answers
409 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 ...
3
votes
1answer
2k 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 ...
3
votes
2answers
982 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 ...
9
votes
1answer
368 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 ...
0
votes
1answer
344 views

Generate a random 100x100 m bounding box in any projection in pure Python?

I'm given: Extend of WMS Layer SRS Now I want to, in standard 2.6 Python (no OGR or C lib dependencies), to generate a 100x100m random bounding box within that extent (assuming it is more than ...
9
votes
4answers
9k 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 ...
4
votes
3answers
6k 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 ...
2
votes
0answers
127 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 ...
1
vote
0answers
233 views

Valid ranges for bounding box in WMS 1.1.1

I'm connecting to a WMS server and found that the longitudes LatLonBoundingBox specified for some of the values are slightly outside of the +/-180 range (such as 180.05). Are these values considered ...
1
vote
2answers
203 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 ...
8
votes
1answer
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 ...
1
vote
3answers
1k 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.
2
votes
1answer
306 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 ...
6
votes
3answers
3k views

Bounding box for PostGIS table

Is there an easy way to get the bounding box for an entire table in PostGIS? Thanks
2
votes
2answers
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 ...
5
votes
1answer
268 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 ...
7
votes
2answers
3k 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 ...
0
votes
1answer
444 views

Problem running bounding-box queries

I am working on a google map application, to display the items that are listed in the selected rectangular area. Below image give you some understanding. Based on the co-ordinates ...
3
votes
2answers
366 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, ...
2
votes
3answers
700 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 ...
7
votes
4answers
3k 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 ...