Tag Info

New answers tagged

0

I discovered it's necessary to use the function ReprojectImage and supply both the source and dest projection as arguments. Source is the file containing the data, match is the file projection I want to copy. from osgeo import gdal,gdalconst # Open files data_src = gdal.Open(file_1) data_match = gdal.Open(file_2) # Create the result dataset data_result = ...


1

Here you have example of what you are trying to achieve I think: http://jgomezdans.github.io/gdal_notes/reprojection.html Below is an except from the link above. g = gdal.Open ( dataset ) # Get the Geotransform vector geo_t = g.GetGeoTransform () x_size = g.RasterXSize # Raster xsize y_size = g.RasterYSize # Raster ysize # Work out ...


2

I used the ogr java bindings: public static void unitOfCRS(){ SpatialReference poSourceSRS = new SpatialReference(); // output: metre poSourceSRS.ImportFromEPSG(3068); System.out.println(poSourceSRS.GetAttrValue("UNIT")); // output: degree poSourceSRS.ImportFromEPSG(4326); ...


1

You could perhaps look into the PROJ4 library. There seems to be a Java binding, which you could use. I am almost confident that I have done a similar task before, although with Python, but I cannot find my code to double check. Either way, there should be a way to get a string which includes all the parameters of a specific coordinate system. You would ...


2

Admitted not the simplest one to learn, but nobody (except one in a list-answer) citing GRASS ? I like its very simplicity when commands are given as simple bash scripts.. and I like to use bash scripts in order to keep track of what I do.. (and GRASS even does it automatically if you still want to use the GUI, as it keeps the log of the commands in a ...



Top 50 recent answers are included