Connect DODS Server
NicoSIG
nicolasgabarron at YAHOO.FR
Thu Aug 17 05:06:02 EDT 2006
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,POSITION_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/sextant_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,POSITION_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 ??
--
View this message in context: http://www.nabble.com/Connect-DODS-Server-tf2120281.html#a5847714
Sent from the Mapserver - Dev forum at Nabble.com.
More information about the mapserver-dev
mailing list