Support » Plugin: Media Library Assistant » _wp_attachment_metadata + GPS coordinates

  • Resolved meggsico

    (@meggsico)


    Hi @dglingren,

    Thank you for this great plugin. i have one problem, maybe you can help me.
    Is it possible to add the gps coordinates to the _wp_attachment_metadata field of each image?

    I’m using another plugin to place pictures on a map. This plugin uses the fieldname GPSLatitudeNum and GPSLongitudeNum for numerical latitude/longitude values.

    thx a lot for your help

    Meggs

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for the positive feedback and for your question, which is similar to this earlier topic:

    Map IPTC/EXIF Metadata

    You can find the documentation example mentioned in the topic in the “Adding or changing Attachment Metadata” section of the Settings/Media Library Assistant Documentation tab.

    You don’t specify which plugin you are using or the format it requires for GPS coordinates. MLA supports a wide variety of GPS formats, and you can find them in the “Field-level enhanced EXIF GPS values” section of the Documentation.

    I hope that gets you started on a solution for your application. I am marking this topic resolved, but please update it if you have any problems or further questions regarding the above suggestions. Thanks for your interest in the plugin.

    Thread Starter meggsico

    (@meggsico)

    Hi @dglingren,

    It works. I’m so happy. Thank you very much. The Plugin I use is called Waymark it is also brilliant as yours and it is free.

    For other users I wrote the following how-to. It is similar to your post. But this is adapted to the Plugin “Waymark”.

    1. Navigate to the Settings/Media Library Assistant “Custom Fields” tab.
    2. Make sure the “Enable custom field mapping when adding new media” box is checked. If not, check the box and click “Save Changes”.
    3. Scroll down to the “Add New Custom Field Rule” area below the “Enable” checkboxes.
    4. Under the “Name” dropdown control, click “Enter new field” to create a new custom field.
    5. In the “Name” text box, give the field the name “meta:image_meta.GPSLatitudeNum”.
    6. From the Data Source dropdown list, select “- Template (see below) -”.
    7. In the “Meta/Template” text box, enter [+exif:GPS.LatitudeSDD+].
    8. Click the “MLA Column” check box if you want to make the field available in the Media/Assistant submenu table. You can also click the “Quick Edit” and “Bulk Edit” check boxes to make the field available in the Media/Assistant submenu table Quick Edit and Bulk Edit areas if that’s useful for you.
    9. In the “Existing Text” dropdown list, select “Replace”.
    10. In the “Format” dropdown list, select “Native”.
    11. In the “Option:” dropdown list, select “Text”.
    12. Click the “Delete NULL Values” checkbox.
    13. Leave the “Status” set to “Active” so the rule will be executed for future additions to the Media Library.
    14. Click the “Add Rule” button to save your work.

    Do the same for the Longitude Coordinates. But use the name “meta:image_meta.GPSLongitudeNum” and in the “Meta/Template” text box, enter [+exif:GPS.LongitudeSDD+].

    Once the rule is created you must execute it to create the “Latitude” and “Longitude” values for the items already in your Media Library:

    1. Find the “meta:image_meta.GPSLatitudeNum” and the “meta:image_meta.GPSLongitudeNum” in the table of rules o the right-hand side of the screen. If you don’t see your new rule, type the name you gave it in the search box above the table and click “Search Rules”.
    2. Click the “Execute” rollover action in the bulk menu.
    3. Wait for the mapping process to complete.

    Thanks again for this great plugin

    Meggs

    • This reply was modified 10 months, 3 weeks ago by meggsico.
    • This reply was modified 10 months, 3 weeks ago by meggsico.
    • This reply was modified 10 months, 3 weeks ago by meggsico.
    • This reply was modified 10 months, 3 weeks ago by meggsico.
    • This reply was modified 10 months, 3 weeks ago by Yui.
    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the good news and for taking the time to write up and post your variation on the solution outlined in the earlier topic. Thanks as well for your positive MLA review; it’s a great motivator to keep working on the plugin and supporting its users.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘_wp_attachment_metadata + GPS coordinates’ is closed to new replies.