[gdal-dev] GeoPDF with a KML layer and a rotated GeoTIFF layer

2018-03-19 Thread Bugbuster
Dear all, I try to create a GeoPDF file with 2 layers: 1) Raster layer: a Geotiff image (*lena_rot.tif*) with a ModelTransformationTag model, with respect to EPSG:4326. The image has a rotation angle (~40° wrt to North). 2) Vector layer: the KML file (*rectangle.kml*) contains a single rectangular

Re: [gdal-dev] GeoPDF with a KML layer and a rotated GeoTIFF layer

2018-03-20 Thread Bugbuster
Oups sorry for my uncomplete message : "raw" tags are not well handled. Below is the GDAL command I used to create my GeoPDF image: gdal_translate.exe -of PDF --config LIBKML_RESOLVE_STYLE YES \ -co OGR_DATASOURCE=rectangle.kml \ -co LAYER_NAME=lena lena_rot.ti

Re: [gdal-dev] GeoPDF with a KML layer and a rotated GeoTIFF layer

2018-03-20 Thread Andreas Oxenstierna
Have you tested to include the OGR datasource in a VRT file instead, with the LayerSRS tag defined? Oups sorry for my uncomplete message : "raw" tags are not well handled. Below is the GDAL command I used to create my GeoPDF image: gdal_translate.exe -of PDF --config LIBKML_RESOLVE_STYLE YES \

Re: [gdal-dev] GeoPDF with a KML layer and a rotated GeoTIFF layer

2018-03-20 Thread Even Rouault
Philippe, the zip attachment didn't make its way to us but from what you're telling and a look at the code, I can indeed see that when writing a raster with rotational terms in the geotransform matrix, and vectors, the vector writing part will not work correctly taking into account those rotati

Re: [gdal-dev] GeoPDF with a KML layer and a rotated GeoTIFF layer

2018-03-20 Thread Bugbuster
Dear Even and Andreas, thanks for your answers. I did try with a VRT file, with the following : * LayerSRS tag, * use of OGRVRTWarpedLayer layer type with no success. In fact I was trying to avoid Even's advice : warp the original image to make it "north up". But if I understand it correctly, I