Tag Info

New answers tagged

0

The actual issue was my naming conventions. My .tif file was long and began with a number. I should have realized this earlier. Thanks for all the help.


0

Simply get the activeview envelope and CenterAt() the point shape you want var point = (IPoint)myItem.Shape; var envelope = theActiveView.Extent; envelope.CenterAt(point); theActiveView.Extent = envelope; theActiveView.Refresh(); That's it !


0

Did you create an n-d index on your geometry column? CREATE INDEX foo_gix_nd ON foo USING GIST (the_geom gist_geometry_ops_nd); Some more information is available here: http://suite.opengeo.org/opengeo-docs/dataadmin/pgBasics/3d_types.html


0

As Andrew says, your approach should be working. For example: var sql = new cartodb.SQL({ user: 'iriberri' }); sql.getBounds("SELECT * FROM world_borders_9").done(function(bounds) { map.fitBounds(bounds) You can see this code live working here.


1

The geometry can be accessed directly rather than through the attributes: x_min(geometry(getFeature('airports', 'cat', 1)))


0

johns made a comment suggesting an ArcGIS add-in that mostly does what I want: Map Extent to Polygon by Jakub Sisak. It does not maintain the rotation, but I can work around that easily.


1

I've devised a gdal and numpy based solution. It breaks the raster matrix into rows and columns and drop any empty row/column. In this implementation "empty" is anything less than 1, and only single band rasters accounted for. (I realise as I write that this scanline approach is only suitable for images with nodata "collars". If your data are islands in ...



Top 50 recent answers are included