-
Notifications
You must be signed in to change notification settings - Fork 207
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
Test dataset for new Exporter system #364
Comments
@sashadev-sky @icarito - this will help us model how the export process changes will go. Basically in the first version, we'd pass the content (or URL) of a file like https://mapknitter.org/maps/ceres--2/warpables.json to one of our export scripts, and let it run; We'd get a URL back to check on the status of the export -- something like I will also copy this into #326 for reference! |
Something occurred to me - the starting point for the exporter could actually be from within Leaflet.DistortableImage, rather than MapKnitter, because of 2 things:
This section (which we'll likely move to its own file soon) shows how the new full-res download is triggered, and What we can do is to prototype an alternative path where:
|
@jywarren So before this, we need to make fisheye-gl work in node context, right? Since our workflow heavily relies on that. Also it would be pretty helpful if you can drop the exact sequencer string we are trying to run. Thanks 😄 |
actually i believe it's https://github.com/jywarren/webgl-distort, but yes, it's a WebGL based module. FisheyeGL would be similar. I think the exact sequence still needs to be determined, but will try:
See, this is why an #298 has diagrams to map this out, though. Does that make sense? |
@jywarren Yes this makes sense to me!! So I'll start off with webgl-distort since that is critical then we can start working on the is-runner and Implement this work structure. |
I think is-app may be one way to achieve is-runner, but actually I am
thinking that is-runner may need to be an independent JS module that can
run in browser or server side, and is a process manager for a collection of
interdependent IS sequences.
Yes, regarding webgl-distort!
…On Tue, Mar 5, 2019 at 3:48 AM Varun Gupta ***@***.***> wrote:
@jywarren <https://github.com/jywarren> Yes this makes sense to me!! So
I'll start off with webgl-distort since that is critical then we can start
working on the is-runner and Implement this work structure.
PS by is-runner you mean the is-app right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#364 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ5WgVJELYS-ozc6feouyI5TSNa-bks5vTi8jgaJpZM4bVrKz>
.
|
Looking at exactly the steps that each Exporter system will follow: For
|
So, in the Ruby version, we'll have to make a Ruby object that has the following properties, and a
|
@jywarren just an update my focus is here now so going through everything today to make sure I understand from beginning to where we are now |
Noting that we've planned out the above replacement And, we have a pretty final format for the JSON data that'll be needed to trigger exports in both Ruby and JS systems documented here: publiclab/mapknitter-exporter-sinatra#1 (comment) Also noting in publiclab/Leaflet.DistortableImage#29 |
For #298, we should have a test dataset, so we can use a real dataset to go through the steps. This is for @tech4GT and others!
I suggest we use:
https://mapknitter.org/maps/ceres--2 as a simple example - 3 images
https://mapknitter.org/maps/irish-uk-border-mapping as a more complex one, many images
Please be careful not to mess up the maps by accidentally editing them, though - that's something we have to fix! #84
To get the corner positions, you'll be able to make a call to the matching json file, like:
OK, so we should be able to calculate pixel positions using Leaflet methods if the Lat/Lon coordinates in the JSON don't work for us;
once you instantiate a Leaflet map, you can run, for example:
These give x,y coords from the corner of the screen. That's probably good enough to determine relative pixel positions when doing the distortion.
A first pass could implement using only latitude/longitude, by finding the lowest latitude and longitude values, and calculating all the math from that origin. There would need to be some pixel math to preserve the width/height of the images, however! There's some modeling of this math here:
https://github.com/publiclab/mapknitter/pull/341/files#diff-98c9836d4e4bd1000e9a41303ae4fb46R49
The text was updated successfully, but these errors were encountered: