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

Render output in the same HTML page #1

Open
thanhgis opened this issue May 27, 2017 · 7 comments
Open

Render output in the same HTML page #1

thanhgis opened this issue May 27, 2017 · 7 comments

Comments

@thanhgis
Copy link

First of, thank you so much for your great development.
I would like to know how to render the image (output from sentinel2web.html) to the same page (sentinel2web.html), but not to other page (sentinel2out.html).
Thank you in advance.

@mortcanty
Copy link
Owner

Happy that you like it. The output has to be directed to sentinel2out.html because that page makes use of googele maps API to get the display token and mapid for rendering. The page sentinel2web.html simply provides an input form and uses leaflet and mapbox to facilitate choosing a region of interest. Why do you want to do it differently?

@thanhgis
Copy link
Author

thanhgis commented May 28, 2017

Thank you for your quick reply.
I want the user can preview the output before decide to run the detection of changes. Anyway, I am happy with output in other page (sentinel2out.html).

However, assuming that there are two "Go" buttons in sentinel2web.html (for two periods), how can I display two outputs in one page of sentinel2out.html?

Thank you so much, again.

@mortcanty
Copy link
Owner

mortcanty commented May 28, 2017

That shouldn't be too hard. I suppose you can define two div areas and display two google map objects in them, passing the two mapids and tokens to the template. But you will have to experiment with that yourself.

@thanhgis
Copy link
Author

Dear Dr. Mort Canty,

It's me, again.

Last time, I just learnt your code and customized it into my web-app. It works.
This time, I tried to run your whole app, particularly running with Sentinel-1, but I am stuck here:
image
Could you please help.

@mortcanty
Copy link
Owner

This simply says that the app has started correctly and is serving on http://localhost:5000. So point your browser to that address.

@thanhgis
Copy link
Author

Thank you!

It was not work, that's why I asked you. But I found that the problem is there was another instance (other app) running.

I killed that instance and now it worked. Thank you very much again.

@thanhgis
Copy link
Author

BTW, please have a look and test (guidance in this video) my application of forest change detection using Landsat-8 and Sentinel-2 data. Please do the same area (provinces) as said in video, otherwise no change will be detected.

https://drive.google.com/open?id=0B2yLV4ZjuJk5anBkZTl4Wk9rUmM

Do you have any comment on this app? Do you think that we can do same thing with Sentinel-1 (this is the point that I want to learn your code in processing Sentinel-1).

Thank you!

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

2 participants