New answers tagged

3

The GDAL section of the Options from the Settings menu will tell you which raster file formats GDAL in your QGIS can load. I can't find a corresponding list for OGR (vector) drivers, but the popup on the "Load Vector Layer" probably has all the file-based ones:


1

I had the same problem in the new 64-bit environment. It is just a matter of changing the color style in the raster tab from pseudo to RGB. Trust that they have a similar setting in the 32-bit environment.


2

Your values aren't in 0,255 since they are UInt16. You can try rescaling to 0,255 (GDAL works it out by default from input min/max and output default 0,255): gdal_translate -b 1 -b 2 -b 3 -mask "none" "input.tif" "output.tif" -scale Note you can add params if the defaults aren't sensible: -scale [src_min src_max [dst_min dst_max]] ...


2

I'm still a little unclear on what you are trying to do but if all you need is to simply reproject the native bounds to WGS84 (as GeoServer does) then the following code will work for you: String wkt = "PROJCS[\"unnamed\"," + " GEOGCS[\"WGS 84\"," + " DATUM[\"WGS_1984\"," + " SPHEROID[\"WGS ...


1

Solved: I must use the source CRS from the GDALINFO output, since it is a custom reference. And the Target CRS is the EPSG4326. And then: DirectPosition dpLc = env.getLowerCorner(); DirectPosition dpUc = env.getUpperCorner(); DirectPosition destLc = new DirectPosition2D(); DirectPosition destUc = new DirectPosition2D(); MathTransform transform = ...


0

I was having the same issue with the package installed following the Kyngchaos website. I installed GIS 2.8 via Homebrew following this tutorial and now I'm able to import GeoTiff files. Summary of the installation process: brew install postgresql brew install python export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH pip install numpy ...


1

You have Georeferenced images that you want to Rectify. There doesn't seem to be a command line Tool that mimics the one on the Georeferencing Toolbar, Rectify. I found a script, by Rob, that reads the control Points from the .tif.aux.xml file and passes this info to the Warp command, outputing a warped image. Please see the script at the end of this post, ...


0

The answer to the question is there's no need to convert the data to a bitmap format at run time. You can pass the data obtained by the RasterIO function to your opencv functions. This question is for when I worked in a company as an apprentice. The time when I didn't know anything about GDAL. So I've asked the question generally and it did not receive much ...


1

ArcGIS supports a number of methods to georeference an image. IMHO its a matter of taste, what methods are associated with georeferencing, and what with "undoing" projection or distortion. The simplest of them, the affine or 1st Order Polynomial supports translation, rotation, and scaling. This one is parameterized by the numbers saved in a "world file", ...


1

I don't use libgeotiff directly, but use GDAL which uses libgeotiff under the hood, but you should be able to find the pixel dimensions using the ModelPixelScaleTag OR extract them from the ModelTransformationTag. See the documentation for more info. You'll need to determine whether the raster is projected and what the horizontal units are (i.e metres, ...


1

How big are the pixels on a side? This seems like a simple calculation if you know the number of pixels and their size i.e. A single 30m pixel (on each side) = 900 Square Meters = 0.2223945 acres (1 square meter = 0.000247105 acres). Am I misunderstanding something? Try using the gdalinfo command to determine cell size and projection information.



Top 50 recent answers are included