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

GeoImage scale #505

Closed
mdellanave opened this issue Aug 31, 2020 · 3 comments
Closed

GeoImage scale #505

mdellanave opened this issue Aug 31, 2020 · 3 comments

Comments

@mdellanave
Copy link

mdellanave commented Aug 31, 2020

I'm trying to use GeoImage to set on a map an img previously aligned with distortableImage (https://github.com/publiclab/Leaflet.DistortableImage)
The problem is that distortableImage uses the image corners instead of the scale factor used by ol-ext GeoImage.

Assuming that distortAction will be disabled, is there a way to get the scale factor from the distortableImage corners coordinates?
Am I on the right way?

here the test app
https://codesandbox.io/s/suspicious-engelbart-xiv31
the img corners should match the circle features

the actual value of scale are generated using http://viglino.github.io/Map-georeferencer/ but I need a way to generate them from the distortableImage corners coordinates

@Viglino do you think it's possible?

thank you

@Viglino
Copy link
Owner

Viglino commented Sep 7, 2020

Look at this repo: https://github.com/Viglino/Map-georeferencer
It lets you get the transform parameters: http://viglino.github.io/Map-georeferencer/

@Viglino Viglino closed this as completed Oct 23, 2020
@carlosjpr-collab
Copy link

@Viglino your solution is not specific.

@Viglino
Copy link
Owner

Viglino commented Dec 31, 2021

The Helmert transform implemented in the repo lets you get all the parameters giving a set of control points which is a good solution to the issue...
https://github.com/Viglino/Map-georeferencer/blob/gh-pages/helmerttransform.js

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

No branches or pull requests

3 participants