Re: [thredds] Maximum length of viewer URL

Thanks Benno.  Encoding the ampersands did the trick.  This allows us to have 
the viewer pull up the selected dataset, not just switch to the viewer, a nice 
new feature of the TDS.

-Roy



On Nov 27, 2010, at 11:09 AM, Benno Blumenthal wrote:

> Hi Roy,
> 
> Just in case you have not done this, you might want to run your file
> through an XML parser (firefox would probably do) to make sure the url
> is properly escaped for XML -- & is a special character and usually
> needs to be escaped for the XML parser.
> 
> Hope it helps,
> 
> Benno
> 
> On Fri, Nov 26, 2010 at 7:51 PM, Roy Mendelssohn
> <Roy.Mendelssohn@xxxxxxxx> wrote:
>> Hi Guys:
>> 
>> I have been testing the Viewer options, where you add to the dataset lines 
>> such as:
>> 
>> <property name="viewer" 
>> value="http://www.unidata.ucar.edu/staff/caron/,MyViewer"/>
>> 
>> I am trying to make it so the link not only goes to the particular viewer 
>> but comes up with that dataset.  Our Coastwatch browser wants a lot of info, 
>> so if I do
>> 
>> <property name="viewer" 
>> value="http://coastwatch.pfeg.noaa.gov/coastwatch/CWBrowser.jsp,Coastwatch"/>
>> 
>> all is fine but while I get the browser I am not at the selected dataset.  
>> If I however try what I would like to try:
>> 
>> <property name="viewer" 
>> value="http://coastwatch.pfeg.noaa.gov/coastwatch/CWBrowser.jsp?edit=Grid+Data&gridDataSet=SST%2C+Blended%2C+0.1+degrees%2C+Global%2C+EXPERIMENTAL*&gridTimePeriod=1+day&gridCenteredTime=2010-11-25+12%3A00%3A00&gridCenteredTime_Year=2010&gridCenteredTime_Month=11&gridCenteredTime_Day=25&gridCenteredTime_Time=12%3A00%3A00&gridUnits=degree+C&gridPalette=Rainbow&gridPaletteScale=Linear&gridPaletteMin=8.0&gridPaletteMax=32.0&gridTimeSeriesLon=&gridTimeSeriesLat=&synchronizeTimes=true,Coastwatch"/>
>> 
>> it fails in the sense that an error is thrown trying to access the dataset 
>> html page.  So the question is, is there a maximum length to the URLs 
>> allowed, or am I doing something stupid and if I could only see it all would 
>> be well  (such as you don't want space and the like encoded and I should 
>> unencode them).  You can test this yourself, as it doesn't really matter 
>> what the actual dataset is.
>> 
>> BTW, this is with the latest TDS 4.2 running on Ubuntu.
>> 
>> Thanks,
>> 
>> -Roy
>> 
>> 
>> 
>> 
>> **********************
>> "The contents of this message do not reflect any position of the U.S. 
>> Government or NOAA."
>> **********************
>> Roy Mendelssohn
>> Supervisory Operations Research Analyst
>> NOAA/NMFS
>> Environmental Research Division
>> Southwest Fisheries Science Center
>> 1352 Lighthouse Avenue
>> Pacific Grove, CA 93950-2097
>> 
>> e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address)
>> voice: (831)-648-9029
>> fax: (831)-648-8440
>> www: http://www.pfeg.noaa.gov/
>> 
>> "Old age and treachery will overcome youth and skill."
>> "From those who have been given much, much will be expected"
>> 
>> _______________________________________________
>> thredds mailing list
>> thredds@xxxxxxxxxxxxxxxx
>> For list information or to unsubscribe,  visit: 
>> http://www.unidata.ucar.edu/mailing_lists/
>> 
> 
> 
> 
> -- 
> Dr. M. Benno Blumenthal          benno@xxxxxxxxxxxxxxxx
> International Research Institute for climate and society
> The Earth Institute at Columbia University
> Lamont Campus, Palisades NY 10964-8000   (845) 680-4450

**********************
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: