Steve, I appreciate the help again, and when I read your email my response was 
"eureka" that's it! Sadly though, I find it is not. I changed the passBy 
parameter to VALUE and still no luck.
So, I rewrote the service to use the PID rather than the KML datastream 
reference (attached) and this still has the same problem!  It must be close 
else the location would not come up at all in Google maps.

http://maps.google.com/maps?f=q&hl=en&q=http://ecenter.coas.unf.edu:8080/fedora/get/unf:collection_awis00001/KML
 (working)
http://ecenter.coas.unf.edu:8080/fedora/objects/unf:collection_awis00001/methods/unf:sdef_GeotaggedImageCollection/gmap
 (not working)

Anyone, know of a good discussion of mime types through the cmodel/sdef/sdep 
process?  Whats the critical one?  Can you mess things up by having the wrong 
mime type at one point or does the final mime type get overridden by the last 
step in the process?  Even if you don't have insight if anyone out there can 
point to an equivalent service - one the concatenates a URL on another website 
URL - would be great to look at.  Do I need to URL encode the URl I am passing 
to Google Maps? So many questions! My brain hurts!

Stuart Chalk, Ph.D.
Associate Professor of Chemistry
Department of Chemistry, University of North Florida
1 UNF Drive, Jacksonville FL 32224
P: 904-620-1938
F: 904-620-3535
E: sch...@unf.edu
W: http://www.unf.edu/coas/chemistry/

Attachment: unf_sdep_GeotaggedImageCollection.xml
Description: XML document

On Mar 20, 2010, at 10:39 AM, Steve Bayliss wrote:

> I think it's what you are passing to the Google Maps URL.
> 
> Comparing with your list disseminator, in this case you have:
> 
> http://local.fedora.server/fedora/risearch?type=(TYPE)&lang=(LANG)&f
> ormat=(FORMAT)&query=(QUERY)
> 
> So it is retrieving the contents of the QUERY datastream, and passing the
> results of that as the query parameter.
> 
> For your gmap disseminator you have
> 
> http://maps.google.com/maps?f=q&hl=en&q=(KML)
> 
> So it will be retrieving the contents of the KML datastream and passing the
> results as the q parameter - in fact what you need to pass is the URL of the
> datastream I believe rather than the contents.  Try passing by VALUE rather
> than URL_REF.
> 
> Steve
> 
> 
> 
>> -----Original Message-----
>> From: Stuart Chalk [mailto:sch...@unf.edu] 
>> Sent: 20 March 2010 11:40
>> To: fedora-commons-users@lists.sourceforge.net
>> Subject: [Fedora-commons-users] KML mapping service
>> 
>> 
>> I am trying to set up a service to send a fedora managed KML 
>> file to the google maps website.
>> The infrastructure is working but there is a mime-type issue 
>> (I think) I can't seem to fix.
>> 
>> The following URLs show it working and not working
>> http://maps.google.com/maps?f=q&hl=en&q=http://ecenter.coas.un
> f.edu:8080/fedora/get/unf:collection_awis00001/KML (working)
> http://ecenter.coas.unf.edu:8080/fedora/objects/unf:collection_awis00001/met
> hods/unf:sdef_GeotaggedImageCollection/gmap (not working)
> 
> As far as I can tell I have set all the mime-type entries to the KML mime
> type of application/vnd.google-earth.kml+xml (see attached sdep).
> 
> Anyone have any ideas in terms of setting the correct mime type, or is it
> not a mime issue?
> 
> Stuart Chalk, Ph.D.
> Associate Professor of Chemistry
> Department of Chemistry
> University of North Florida
> 1 UNF Drive
> Jacksonville, FL 32224 USA
> P: 904-620-1938
> F: 904-620-3535
> E: sch...@unf.edu
> W: http://www.unf.edu/coas/chemistry/
> 
> 

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to