change <!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Thu Sep 6 06:31:45 PDT 2007


 

> -----Original Message-----
> From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of shortyII
> Sent: 06 September, 2007 9:11 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] change <!DOCTYPE 
> WMT_MS_Capabilities SYSTEM 
> "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
> 
> Hello,
> to connect my mapserver to my "special" GIS program, I have 
> to change the getCapabilities file. Usually the files starts 
> with <!DOCTYPE WMT_MS_Capabilities SYSTEM 
> http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd",
>  but for reason, I don't understand (some connection 
> problems), I have to change it to a local path e.g. <!DOCTYPE 
> WMT_MS_Capabilities SYSTEM 
> "http://localhost/wms/1.1.1/WMS_MS_Capabilities.dtd". 
> I have seen some getCapabilities-files, which have a 
> different <!DOCTYPE...>, but i didn't find any files, where I 
> could change it.
> Thanks for helping. It is urgent!
> Best regards,
> Stefan Schantz
> --

Sounds like you may be having connection issues  Can you get to remote
URL locations?

In MAP/WEB/METADATA/, you can set "ows_schemas_location" (see
http://mapserver.gis.umn.edu/docs/howto/wms_server/#web-object-metadata)
.

If you set ows_schemas_location, the code will output the correct
location of the DTD as per the main schemas.opengis.net site with the
ows_schemas_location you specify.  If you do not specify
ows_schemas_location, the code will use the default definition.

In either case, the DOCTYPE declaration is correctly outputted by the
code.

..Tom



More information about the MapServer-users mailing list