-
Notifications
You must be signed in to change notification settings - Fork 4
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
Mapping for Traits #98
Comments
The map element that I created for the trends detail page can be reused for Traits (or if required easily customized). |
Great, thanks |
Hey @coffeejunk and @redrambles just checking to see on progress on the maps for the traits side, and the maps on the species landings pages. Do you need anything from me? |
@creeas sorry for the delay here. The range maps on the species landing page are ready from the development point of view: However, the Shapefile's resolution of its features is too high, and it takes a very long time to render the maps. The above screenshot took ~30 seconds; if I zoom into a random spot, it takes >2 minutes to render this: I'm trying different approaches to reducing the resolution of the features and improving the rendering but so far, to no avail. |
Ah I see, and thanks for keeping up on this. Wow those look great, but I can see how that rendering time would make it unusable. Can the shapefiles be preprocessed to reduce their resolution before they are imported into the db? Let me know if there is anything you need on my end to get for you... |
It looks like there may be a way to reduce the resolution via reducing the nodes in the polygons. Since this is primarily for visualization purposes this might a a useful route. I will see if I can generate some test shapefiles for a handful of species and we can see how they render. |
@creeas did you have a chance to look into this? |
Hey @coffeejunk sorry not yet. I've been busy teaching, but the last day is tomorrow. I will carve out some time in the next week to see about reducing the polygon resolution and speeding up the rendering. |
Hey @coffeejunk and @redrambles I'm really sorry I am just getting back to this after lots of sidetracks. I am working on simplifying the shapefiles to possibly speed up rendering. I also came across another solution on a dashboard. What about converting the shapefiles to .pngs on which we can overlay the points from the observations? With the reduced size it should make it much easier/faster to render as a layer this way. What do you think? |
@creeas do you mean rendering PNGs and then just showing those on the page instead of an interactive map, or do you mean PNGs as a layer in the map? 🤔 |
In addition to Country of Occurrence, it would be great to create a map for each trait sample. Is is possible to build this from our existing Trend maps? Can we add a layer of shapefiles of tRFMO areas and a script that matches lat-long to each layer? @coffeejunk maybe you can tell us if this is a big or a small job.
The text was updated successfully, but these errors were encountered: