Tag Info

New answers tagged

2

With libtiff you can't get altitude from you file. I spent a lot of time trying to do it with libgeotiff. My advice is to install GDAL. Example: GDALRasterIO( hBand_ , GF_Read , p, l, 1, 1, &pafScanline, 1, 1, GDT_Float32, 0, 0 );


0

I finally figured it out... this code assumes that the geotif is in wgs84 (4326) proj, but it works well for getting the lat long for each pixel, and the band values for each pixel (formatted as a csv here). Hope this helps. import com.spatial4j.core.io.GeohashUtils; import java.awt.geom.Rectangle2D; import org.geotools.coverage.grid.GridCoverage2D; import ...


1

In GRASS GIS, use r.in.arc for the import or simply r.in.gdal (Menu: File -> Import raster data -> Common formats import). This should read the file right away.


0

The format looks like AAIGrid, see How can I convert a ascii file to geotiff using Python? for an example. You can use gdal_translate to convert it to geotiff: gdal_translate -of "GTiff" fname.asc outname.tif The file extension .asc is important to tell gdal which format to use. Or use the python code from the linked question.


0

I believe that I have found an adequate solution that meets all of my requirements. Thanks to user30184's answer, which pointed me in the direction of ImageIO, I was able to find an alternative Java imaging library called Apache Commons Imaging. It is a pure-Java library that consists of a single small JAR file. It also supports both reading and writing of ...


1

Install OpenJUMP and study what all has been gathered into it I have never really understood what all the alternatives are. ImageIO-ext is probably utilising native GDAL binaries if such are available but at least most other alternatives are pure java. There is also one more alternative in OpenJUMP called "Sextante raster" which is also pure java. ...


0

I am having the same problem with extract in the latest two versions of R (3.1.1 and prior) on a Mac. I don't even have a function in my extract call: v<-extract(r,p, df=TRUE, cellnumbers=TRUE, small=TRUE, sp=FALSE) Warning message:In .local(x, y, ...) : argument df=TRUE is ignored if fun=NULL I get a list back despite my best efforts, but I ...


2

I am fairly sure that the error is associated with the FUN argument. R is case sensitive and the argument in extract is lowercase "fun". To understand how this works I would break down the components of the analysis rather than letting the extract function do all the heavy lifting. Understanding the specific components, in particular the resulting list ...


1

Under Settings -> Options, CRS tab, enable Prompt for CRS for new layers. Then you will be asked explicitely for the CRS, which should be the same as you georeferenced to in Arcgis. You might get a datum shift of up to 100m, as this is not stored by Arcgis. But QGIS has bundled the shift with the common projection definitions.


2

If you don't know the extent in coordinates of the prj file, you have to georeference the file manually using ground control points. This is rather comfortable if you have QGIS installed, and you can guess some details from the image. In some cases, you can build the extent manually if the filename follows a certain rule, like the one-degree-SRTM files do. ...


0

i worked on SRTMGeoTIFFReader and this is what i give All i want is the coordinate of 4 corner of my geotiff pic like this : Corner Coordinates: Upper Left ( 69.7357061, 29.87658367) Lower Left ( 69.7357061, 28.19226367) Upper Right ( 86.6125061, 29.87658367) Lower Right ( 86.6125061, 28.19226367) Center ( 781741.061, 2903442.367) have you any ...


2

Here is the source to the underlying Java library, prj2epsg, used behind the scenes on the webpage you list. Basically, it uses a Lucene index to get the best match between the WKT in your prj file and an underlying EPSG. As AndreJ has already said, this may not be 100% perfect, but Lucene excels at partial/fuzzy matching. gdalsrsinfo might be easier to get ...


2

There is no such tool working 100% perfectly, because there are many EPSG codes that share the same projection parameters. You can run gdalsrsinfo on any Geotiff or shapefile .prj file to get the proj string out of the definition. For some intelligent ways of guessing, follow the answers given here: Identifying Coordinate System of Shapefile when Unknown? ...


2

It's highly inefficient to merge mosaic using gdal merge. Instead, make a VRT (Virtual Dataset) and convert it to your favourite format.


0

thank you for your attention, i am newbie with geotiff and i'm sorry about my questions, i cant install php-gdal,and cant work with that , i think this plug in is for linux OS , but i worked on SRTMGeoTIFFReader and this is what i give i just want the coordinate of 4 corner of my geotiff pic like this : Corner Coordinates: Upper Left ( 69.7357061, ...


0

there is a php extension called php-gdal I found some install instructions: https://www.drupal.org/node/2133103 the main site: https://github.com/geonef/php5-gdal helpful? http://dl.maptools.org/dl/php_ogr/php_ogr_documentation.html I looked at scruss' suggestion: ( How to read GeoTIFF using PHP? ) and downloaded the code to take a look at. I'm not ...



Top 50 recent answers are included