Tag Info

Hot answers tagged

5

Looks like you downloaded the JPEG "LandsatLook images with Geographic Reference" not the "Level 1 GeoTIFF Data Product". JPEGs use lossy compression which will change the values slightly so the zero values at the edge of the scene aren't exactly 0 anymore. You can use GDAL nearblack (QGIS Raster - Analysis - Near black) to convert them back to 0 (output to ...


4

The following script determines the bounding box of a raster and creates based on the bounding box a geometry. import ogr, gdal raster = gdal.Open('sample.tif') vector = ogr.Open('sample.shp') # Get raster geometry transform = raster.GetGeoTransform() pixelWidth = transform[1] pixelHeight = transform[5] cols = raster.RasterXSize rows = raster.RasterYSize ...


2

Do not use the regular "Add PostGIS Layers", it will not show your raster table. The plugin "Load Postgis Raster to QGIS" was not updated to QGIS v.2.0, so it won't work either. In QGIS v.2.6 go to menu Database->DB Manager->DB Manager, set the database connection and you will see the raster table. You can drag and drop it or right click and select Add to ...


2

Since 10.1, you can use the image analysis tools (Windows > image analysis) to create a mask function that will perform the masking on the fly Using the Mask function, you will specify one or more NoData values or a range of valid pixel values. The inputs for this function are the following: Input Raster / NoData Interpretation / NoData ...


2

If you would like to keep the object type(s) as raster I would take a look at the ratify function although, I do not think that it is intended for numeric data. require(raster) r2 <- raster(nrow=10, ncol=10) r2[] = 1 r2[51:100] = 2 r2[3:6, 1:5] = 3 r2 <- ratify(r2) rat <- levels(r2)[[1]] rat$MyRATValue <- c(100,200,300) ...


1

maybe I get !! the quality of my raster image is fundamental. I had some steps to process it, raster to polygon, buffer + to involve some internal parts, buffer - to eliminate some external parts, polygon to raster ...


1

ENVI can handle this directly. there is a layer stacking tool (Basic Tools > Layer Stacking) to create composite bands.


1

I ended up using an R solution almost identical to that provided by @JeffreyEvans. First, I was able to pare down the number of polygons of my shapefile I was genuinely interested in. I pared these data down by eliminating those polygons that were outside of city limits in the county in which I was interested. This was a simple process done in QGIS to ...


1

Your best bet is to convert it to JSON. I assume the binary array is a file type, so you have a X,Y,(Attribute) grid in some format and you want to display it on Leaflet. If you have a way of reading the file, then work out how to output it just as points, so CSV, or GeoJSON as a first preference. If there are less than, say, 3000 points, that will render ...


1

A non-ESRI option might be to use GDAL. The nearblack tool will convert nearly black or nearly white pixels to all black or all white. Though, again, this doesn't meet your requirement to not create duplicate files.


1

(Disclosure: I am part of the WOUDC data centre renewal team) The data centre is undergoing renewal in order to modernize client services. Improved data access is one of the major enhancements (which includes geospatial web services and formats; see the data access about page for details). Users are encouraged to provide feedback against the beta. For ...



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