Connect DODS Server

Pericles S. Nacionales naci0002 at UMN.EDU
Thu Aug 17 15:50:09 EDT 2006


Hi!

I'm no expert on this but I think you also need to define a DODS config file 
in your mapfile: CONF DODS_CONF "/path/to/dodsrc"

The dodsrc file might look something like this:
  # DODS client configuation file. See the DODS
  # users guide for information.
  USE_CACHE=1
  MAX_CACHE_SIZE=50
  MAX_CACHED_OBJ=5
  IGNORE_EXPIRES=0
  CACHE_ROOT=/ms4w/tmp/ms_tmp/dods_cache/
  DEFAULT_EXPIRES=86400
  ALWAYS_VALIDATE=0
  # Request servers compress responses if possible?
  # 1 (yes) or 0 (false).
  DEFLATE=1
  # Proxy configuration:
  # PROXY_SERVER=<protocol>,<host[:port]>
  # PROXY_SERVER=,
  # PROXY_FOR=<regex>,<host[:port]>
  # PROXY_FOR=,
  # NO_PROXY_FOR=<protocol>,<host|domain>
  # NO_PROXY_FOR=,
  AIS_DATABASE=/ms4w/apps/dods_demo/ogr_test_eg.xml

Lastly, you might need to create a "dods_cache" under your IMAGEPATH.  Make 
sure the web user has write permission to this directory.

If all these don't help you, the people who can are probably over at the 
DODS/OPeNDAP forum.  If you're not subscribed, go to 
http://www.opendap.org/mailLists/index.html and subscribe to the "DODS-TECH" 
mailing list.  You might want to search their archive first before sending 
your query.

Cheers!
-Perry

On Thursday 17 August 2006 04:06, NicoSIG wrote:
> I would like to connect Mapserver to a DODS Server.
> latitude and longitude variables must be named 'lat' and 'lon', and on my
> Server, they're named 'LATITUDE' and 'LONGUITUDE'.
>
> By using AIS mechanism, I wrote a DAS file with an Alias.
>
> Here is my mapfile:
> MAP
> ...
> CONFIG DODS_AIS_FILE
> "/home/alboran/logiciels/apache/htdocs/mtreguer/cartoweb3/projects/sextant_
>test/server_conf/sextant/dods/ais.xml" ...
> LAYER
>     NAME "serveur_dods"
>     TYPE POINT
>     CONNECTIONTYPE OGR
>      CONNECTION
> "DODS:http://rhsism11.ifremer.fr:8080/dap4cor/dap4cor-coriolis?lat,lon,POSI
>TION_QC&lat>47&lat<50&lon>-6&lon<0"
>
>     DATA "location"
>     STATUS DEFAULT
> .......
>
>
> Here is ais.xml file :
> <?xml version="1.0" encoding="US-ASCII" standalone="no"?>
> <!DOCTYPE ais SYSTEM "http://xml.opendap.org/ais/ais_database.dtd">
> <ais xmlns="http://xml.opendap.org/ais">
>
>   <entry>
>     <primary regexp="http://rhsism11.ifremer.fr:8080/dap4cor*"/>
>     <ancillary rule="fallback"
> url="/home/alboran/logiciels/apache/htdocs/mtreguer/cartoweb3/projects/sext
>ant_test/server_conf/sextant/dods/Coriolis.das"/> </entry>
>
> </ais>
>
> And this is Coriolis.das:
>
> Attributes {
>   Alias lat location.LATITUDE;
>   Alias lon location.LONGITUDE;
> }
>
>
> but the system return an error:
>
> Error in msOGRFileOpen(): Open failed for OGR connection
> `DODS:http://rhsism11.ifremer.fr:8080/dap4cor/dap4cor-coriolis?lat,lon,POSI
>TION_QC&lat>47&lat<50&lon>-6&lon<0'. Error fetching DAS or DDS:
> Error parsing the text on line 1 at or near:
> The descriptor object returned from the dataset was null.
> Check that the URL is correct.
>
> it seems that aliases are not considered.
> how to resolve this problem ??

-- 
Pericles S. Nacionales
Conservation Biology Program
University of Minnesota
e-mail: naci0002 at umn.edu



More information about the mapserver-dev mailing list