Collection image

Retag as map type

Last updated about 7 hours ago

EOL would like to display all maps that we have on our Maps tab. However, some maps come to EOL as general images (such as from Wikipedia, where they may not be reliably marked as maps). This collection will gather together the maps that need to be re-processed from images to maps. We don't have a tool yet but we plan to develop one. Please leave a message in the newsfeed if you want to be able to add to this collection.

 

Note that if the image is from a wikimedia site, you can allow EoL to automatically recognise it as a map during the next wikimedia harvest. To do this, you must add a suitable category to its page on Wikimedia Commons. Any category descended from 'Distributional maps of organisms' is suitable, as described at http://eol.org/info/curate_wiki (in the "Category use" section).

Add a new comment

Newsfeed

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    5 months ago

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    5 months ago

  • Profile picture of Michаel Frаnkis who took this action.

    Michаel Frаnkis marked "File:Pinus cembra distribution map.png" as trusted on the "Pinus cembra L." page.

    6 months ago

  • Profile picture of Michаel Frаnkis who took this action.
    Michаel Frаnkis added an unknown item to the collection "Retag as map type".

    6 months ago

  • Profile picture of Michаel Frаnkis who took this action.
    Michаel Frаnkis added an unknown item to the collection "Retag as map type".

    6 months ago

  • Profile picture of Cyndy Parr who took this action.
    Cyndy Parr added "Image of Stenamma diversum" to the collection "Retag as map type".

    6 months ago

  • Profile picture of Yan Wong who took this action.

    Yan Wong commented on "Retag as map type":

    There's a current issue with the wikimedia harvester which means even a correctly tagged map on Commons may not be correctly identified by EoL (this includes one of the two images that Cyndy just tagged). I have a fix waiting to be accepted by the EoL maintainers: until that comes through, don't spend too much extra effort adding items to this collection, as many may be picked up automatically. When it comes though, I'll change the description of this collection to indicate how wikimedia maps can be correctly tagged.

    6 months ago • edited: 6 months ago

  • Profile picture of Cyndy Parr who took this action.
    Cyndy Parr added an unknown item to the collection "Retag as map type".

    6 months ago

  • Profile picture of Cyndy Parr who took this action.
    Cyndy Parr added an unknown item to the collection "Retag as map type".

    6 months ago

  • Profile picture of Michаel Frаnkis who took this action.
    Michаel Frаnkis added an unknown item to the collection "Retag as map type".

    7 months ago

  • Profile picture of Michаel Frаnkis who took this action.
    Michаel Frаnkis added an unknown item to the collection "Retag as map type".

    7 months ago

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    7 months ago

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    7 months ago

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    7 months ago

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    7 months ago

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    7 months ago

  • Profile picture of Deniz Martinez who took this action.
  • Profile picture of Deniz Martinez who took this action.
  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    7 months ago

  • Profile picture of Yan Wong who took this action.

    Yan Wong commented on "Retag as map type":

    OK. Done. Here's the crude code for mechanising the deletion of a set of known dataObject IDs from a collection (there's an extra step because I authenticate to EoL via google). I think we'll need the script again because a recent change to the wikimedia harvester should catch more of these maps (I estimate about another 50). Note that I used a different script to query the API to find which dataObjects in the collection are now tagged as maps. I can post this too if you like, or email it somewhere.

    #!/usr/bin/perl -ws
    use WWW::Mechanize;
    my $mech = WWW::Mechanize->new();
    my @data_objects_to_remove = (26791217,26839973,26839982);

    #log in to google
    $mech->get("https://accounts.google.com/ServiceLogin?hl=en&continue=https://www.google.com/");
    $mech->submit_form(form_id => 'gaia_loginform',fields => {Email => 'myemail@googlemail.com', Passwd => '*****'});

    #log in to EoL
    $mech->get("http://eol.org/login");
    $mech->submit_form(form_id => 'new_session_google');
    $mech->get("http://eol.org/collections/23389?view_as=1"); #might need to look on pages 2, 3, 4 etc too

    # finding the checkbox is a pain because the checkbox values don't correspond to the dataobject IDs. The source looks something like
    #<div class='checkbox'>
    #<input id="collection_job_collection_item_ids_" name="collection_job[collection_item_ids][]" type="checkbox" value="296755731" />
    #</div>
    #<h4>
    #<a href="/data_objects/21075962">Image of <i>Shirozuella unciforma</i></a>
    my %data_obj_to_formval=();
    my $html = $mech->content();
    while ($html =~ m|<input id="collection_job_collection_item_ids_" name="collection_job\[collection_item_ids\]\[\]" type="checkbox" value="(\d+)" />\s*</div>\s*<h4>\s*<a href="/data_objects/(\d+)">|gs) {
    $data_obj_to_formval{$2}=$1;
    };
    $mech->form_id('new_collection_job');
    $mech->select('scope', 'selected_items'); #make sure we don't remove all!
    foreach my $id (@data_objects_to_remove) {
    if (exists($data_obj_to_formval{$id})) {
    print "removing data object $id, which corresponds to checkbox value $data_obj_to_formval{$id}\n";
    $mech->tick('collection_job[collection_item_ids][]', $data_obj_to_formval{$id});
    }
    }
    $mech->click("remove")

    7 months ago • edited: 7 months ago