Tag Info

Hot answers tagged

4

Probably the python port of gdalinfo would help you. You can see at the top of the file that all the coordinates are reported using the GDALInfoReportCorner method: #/* -------------------------------------------------------------------- */ #/* Report corners. */ #/* ...


4

After struggling with it for about 6 hours I was able to get it to work. Here is the script I used to solve the problem: lyrstands = new OpenLayers.Layer.Vector("Stands 1stQ 2012", { strategies: [new OpenLayers.Strategy.BBOX()], eventListeners: { 'loadend': function (evt) {//THE LOADEND EVENT LISTENER - WHEN THE LAYER IS DONE ...


3

If you need the minimum area bounding circle, then look at this link (Bounding Containers). Make sure you are using projected coordinates. Shapefiles are supported, and it has been tested in ArcMap 10 but should work in 10.1. The fundamental python code for other platforms is included within the zip file.


2

What's the coordinate system aka spatial reference of the map? If it's 3857 / Web Mercator, these lat/lon values are probably being interpreted as xy values in meters. You may need to project the envelope or the points before creating the envelope. First, you might try assigning a geographic coordinate system to the envelope but I don't know if it will work. ...


1

You don't need a SQL-query to do that, only Python with, once again, the modules Fiona and Shapely of Sean Gillies. I want only the records which are within the blue frame (analogy of a raster layer). See the Fiona user Manual, the filter() method returns an iterator over records that intersect a given (minx, miny, maxx, maxy) bounding box: from ...


1

You can apply a mask to the layer, and then export the masked Layer to a BitmapData, or Bitmap if required. Have a look at this article: Masking display objects The Only major change you'll have to do, is to convert your required extent from map units to display units, and then use it to mask the Layer. Once you have masked the layer, you can convert it ...


1

In my experience, in ArcGIS, Extent doesn't mean what you would expect it to mean. The Extent is not the minimum Bounding Box of all features. It is the maximum possible extent of all features according to ArcGIS. Why that would be useful, is beyond me. However, there are a few things to correct the extent. Most of them are via ArcObjects, but this Addin ...


1

I continue to get an error in my new page saying that 'map' is undefined To determine whether the 'map' is undefined error is referring to the "old" map or the "new" map, can you ensure that you've given them unique names? I can see in Firebug that my function to set the new extent based on the extent of the original page runs before the page is ...


1

With Arcgis 9.3 I believe it is consistent just WHEN the rasters are georeferenced!. Then after creating geoprocessing object u can reach it easily with Extent object. extentofXmin= gp.Describe(rastersource).Extent.Xmin #this is a topleft corner The other corners respectively reached by Ymin, Xmax, Ymax. You can see the corner situation in RasterClip in ...



Only top voted, non community-wiki answers of a minimum length are eligible