Hi, Because you are changing from the raster world into vector world I would it somehow - convert raster in native CRS into xyz - write a vector VRT file for converting xyz data into points - re-project the point dataset with ogr2ogr
Converting data into PostGIS raster could be more elegant and allows to live between the two worlds in a flexible way. -Jukka Rahkonen- Idan Miara wrote > Hi all, > > I have a UTM raster that I want to warp translate to xyz format and > transform the coordinates to EPSG:4326, I could use: > `gdalwarp -of xyz -t_srs EPSG:4326 utm.tif 4326.xyz` > > But surely I get a 4326 grid, so my data points were altered to fit the > new > grid. > I could write a function that iterates over the pixels and translates each > point, but is there a more elegant way to transform coordinates without > forcing the target srs grid? > > Kind regards, > Idan > > _______________________________________________ > gdal-dev mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/gdal-dev -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
