Thx for the answers, now I get the right srs but the extent is different:
SHAPE 1 ( the one where I want to get the info and copy to the new)
$ ogrinfo -al provaimp.shp
INFO: Open of `provaimp.shp'
using driver `ESRI Shapefile' successful.
Layer name: provaimp
Geometry: Polygon
Feature Coun
Sorry, I do not understand...You mean to write the spatialRef to a txt file
and then doing something like:
$ ogr2ogr -a_srs spatialRef.txt dst_shape.shp src_shape.shp
Is this what you mean? Where inside the txt file there is:
GEOGCS["GCS_WGS_1984",
DATUM["WGS_1984",
SPHEROID["WGS_19
Thx, I tried to copy the file .prj but didn't work so I moved to use the
ogr2ogr method using -a_srs but I'm not able to do that...
I get the spatialRef using ogrinfo, like:
GEOGCS["GCS_WGS_1984",
DATUM["WGS_1984",
SPHEROID["WGS_1984",637813.0,298.252223563]],
PRIMEM["Greenwich",0
Hi guys,
I have two shapefile with same features but one miss the extent and the
projection. What I want to do is copy the extent and the projection from the
first and set to the second. I did something similar with two images using
these step:
inputimg = gdal.Open(str(fileName), GA_ReadOnly)
gd
I know the scale mode but this make a linear stretch. I'm asking if there is
a different stretch (equalized, linear without 2% tail, gaussian,...) in
GDAL or I need to use a different one. And if there is what can I use?
Thx for the answer!
--
View this message in context:
http://osgeo-org.18032
Do you know how stretch an image using GDAL? Is this possible? If not, what
method can I use?
I need to stretch to Byte but in an equalized mode! I know that there is the
scale tool in gdal but I don't know how make the stretch!
Thx
--
View this message in context:
http://osgeo-org.1803224.n2.na
I already tried this step:
$ gdal_translate -of ENVI -ot Byte -scale File.tif Prova.raw
Input file size is 1828, 1646
0...10...20...30...40...50...60...70...80...90...100 - done.
$ gdalinfo -stats prova.raw
Driver: ENVI/ENVI .hdr Labelled
Files: prova.raw
prova.raw.aux.xml
prova.hd
Driver: GTiff/GeoTIFF
Files: File.tif
File.tfw
Size is 1828, 1646
Coordinate System is:
PROJCS["WGS 84 / UTM zone 47S",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG",