Closed (works as designed)
Project:
File Framework
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
24 Oct 2008 at 21:27 UTC
Updated:
3 Mar 2012 at 11:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
miglius commentedThe latest fileframework is integrated with a location module. You need to enable a locations on the file node. Then on creating a file node with the image file, if there is a geo data in the image, it will be automatically extracted and passed to the location module.
Comment #2
ansorg commentedOk, I tried again and this time it worked - great :)
The image gets a marker now on the node location (gmap) map. There is just no thumbnail shown. But this is another issue ...
Comment #3
Arto commentedComment #4
miglius commentedClosing this issue as the location got extracted.
Comment #6
ansorg commentedhello again,
I just restarted the whole site from scratch. Enabled FileFramework and friends, Location module and Gmap.
And again, I do not get the system to automatically fill in location information for my File (Image) Nodes. The images do contain geo exif as I can see in the RDF properties of each image.
Location Module is enabled, On the "File" content type I have set location to "1 minimum", "1 maximum" number of locations.
Is there another configuration step that I am missing in one of the involved modules?
Comment #7
miglius commentedDo you upload a file by directly creating a file node at 'node/add/file' or upload it as an attachment or cck file field instead? If you create a file node, do you see the Latitude and Longitude fields in the Location fieldset in the node creation form? Those fields are filled with the extracted geo data on the file node creation.
Comment #8
ansorg commentedI use the File content type and it's form directly (node/add/file). See attached screenshot, it shows the edit form again right after an upload. As you can see in the properties the Exif gets parsed and location info is found. But the location fields remain empty.
Second screenshot shows how location module is configured for the "File" content type.
It was working once before - if only I could figure out what I did differently this time - apart from using newer (current) versions of all modules
Comment #9
ansorg commentedHi again,
I tried to "debug" a bit ...
file_image_nodeapi seems to be the place where location data is stored, if available.
I added some output to the function
On file upload I get as result
Looks ok so far I think. But for some reason the $node-locations data is not stored with the node, is there a call to a save function missing?
hope you can make something out of this
Comment #10
ansorg commentedand perhaps a feature request:
would it be possible to run this code not only on node creation (insert) but also on update?
Comment #11
miglius commentedThis is working on my setup. Could you enter some debugging statements into the location module to track where the coordinates get lost and why they are not saved?
Comment #12
ansorg commentedunfortunately I'm away for some time now. Will continue on this when I'm back in june
Comment #13
johanneshahn commentedno activity