Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoTIFF rotation #15370

Open
carmenmarquez opened this issue Nov 24, 2023 · 4 comments · May be fixed by #15402
Open

GeoTIFF rotation #15370

carmenmarquez opened this issue Nov 24, 2023 · 4 comments · May be fixed by #15402
Labels

Comments

@carmenmarquez
Copy link

Hello,
I'm trying to load a TIF into OpenLayers but it doesn't seem to be rotating the image.
In QGIS it is displayed correctly.
The URL is: http://ftpcdd.cnig.es/Vuelos_2015_2016/Vuelos_2015/Baleares/1.VF/1.08_PNOA_L6_2015_BAL_25cm_VF_img8c_rgb_hu31/h50_0697_fot_002-0015.tif
The projection is EPSG:25831.

Example:
const sources = [new GeoTIFF({
convertToRGB: 'auto',
sources: [{
url: 'https://ftpcdd.cnig.es/Vuelos_2022/Vuelos_2022/extremadura_2022/Sur/01.VF/01.08_PNOA_2022_EXT_S_22cm_VF_img8c_rgb_hu29/h50_0752_fot_02-3221_cog.tif',
}, ],
})];

const layer = new TileLayer({
sources: sources,
});

I attach a screenshot of how it is displayed in QGIS and OpenLayers.

all the best
QGIS
Ol

@mike-000
Copy link
Contributor

Duplicate of #15294

@mike-000
Copy link
Contributor

mike-000 commented Dec 8, 2023

It would work with #15402 https://jsfiddle.net/c9mejsLa/

@carmenmarquez
Copy link
Author

Hi Mike, thank you very much for your response.
I wanted to ask:

  • Is it possible for the image to display correctly without modifying the map view?
  • Is it possible not to limit the movement of the map only to the area where it is located in COG?

@mike-000
Copy link
Contributor

mike-000 commented Dec 12, 2023

You can view it in any projection you want, but you must ensure the COG projection is registered with proj4 https://jsfiddle.net/1xpc7t4r/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants