Web Map Context interoperability proble ms

Eijnden, B. van den (Bart) b.vdeijnden at AGI.RWS.MINVENW.NL
Wed Mar 1 02:04:22 EST 2006


Hi Daniel,

the EPSG problem has resolved itself, I only had the problem when running
php in a shell, not running on the webserver, so it probably had something
to do with PROJ_LIB.

Wrt to OGC:WMS versus WMS, all the examples in the 1.0 spec use OGC:WMS
instead of WMS, see:
http://www.opengeospatial.org/docs/03-036r2.pdf

I have opened up the following bugs:

1) cannot open WMC which misses an XML header:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1691

2) context code does not support true/false for xs:boolean
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1692

3) context 1.0 write code uses WMS instead of OGC:WMS
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1693

Best regards,
Bart

-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Daniel Morissette
Verzonden: dinsdag 28 februari 2006 21:07
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: Re: [UMN_MAPSERVER-USERS] Web Map Context interoperability
problems


Hi Bart,

Could you please file a bug and Julien will have a look and provide more 
precise answers?

Quick comments about the issues that you raised:

About the EPSG code not being recognized, we've used 4326 before and I 
don't thing the pszValue+5 implies that the EPSG code needs to be 5 
digits, I think it's there to skip the "EPSG:" prefix. It has to be 
something else, we'll need to check further with this

About #1: you're right that this is missing

About #2: MapServer 4.9 should spit out "OGC:WMS" for v1.1.0 contexts, 
and "WMS" for 1.0.0 ... I didn't double-check the specs, but I think 
this is the correct behavior.

Daniel


Bart van den Eijnden wrote:
> Hi list,
> 
> I am trying to use a WMC document generated by Ionic in Mapserver, but
> cannot get it to work (no layers in map object). The Ionic context
> validates in Oxygen.
> 
> First problem, Ionic does not use a XML header for the context, so
> Mapserver comes back with:
> 
> PHP Warning:  [MapServer Error]: msLoadMapContext(): Invalid XML file
> (/data/geoservices/apps/geoservices/htdocs/ionic.cml)
>  in /data/geoservices/apps/geoservices/htdocs/wmc_ionic.php on line 5
> 
> So I added the XML header by hand. Then the following problem occurs:
> 
> PHP Warning:  [MapServer Error]: msLoadMapContext(): Unable to set units
> for projection ''
> 
> Could it be that the Mapserver code assumes a 5 letter SRS EPSG code? If I
> use e.g. 28992 it runs fine.
> 
> sprintf(pszProj, "init=epsg:%s", pszValue+5);
> 
> I have seen a few other potential problems in the Mapserver code:
> 
> 1) the parsing code for queryable etc. assumes to get a 0 or 1, whereas
> true or false are also valid values for xs:boolean
> 
> 2) when outputting a WMC, Mapserver uses WMS for the value of the service
> attribute of Server, whereas the OGC example (on schemas.opengis.net) as
> well as Ionic use OGC:WMS
> 
> <Server service="OGC:WMS"
> 
> I have attached the context if somebody is interested to try this out.
> 
> Best regards,
> Bart
> 
> 
> ------------------------------------------------------------------------
> 
>   <ViewContext xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/context
http://schemas.opengis.net/context/1.0.0/context.xsd"
xmlns="http://www.opengis.net/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="none"
version="1.0.0">
>     <General>
>       <Window width="600" height="300"></Window>
> 
>       <BoundingBox SRS="EPSG:4326" miny="28.200000000000017"
maxy="58.80000000000001" maxx="41.39999999999999"
minx="-19.799999999999994"></BoundingBox>
> 
>       <Title>World view</Title>
> 
>       <Abstract>Example Context</Abstract>
> 
>     </General>
> 
>     <LayerList>
>       <Layer hidden="0" queryable="false">
>         <Server service="OGC:WMS" title="WORLD" version="1.1.1">
>           <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://webservices.ionicsoft.com/worldData/map/WORLD"
xlink:type="simple"></OnlineResource>
> 
>         </Server>
> 
>         <Name>WORLD</Name>
> 
>         <Title>WORLD</Title>
> 
>         <Abstract></Abstract>
> 
>         <StyleList>
>           <Style current="1">
>             <Name>default</Name>
> 
>             <Title>default</Title>
> 
>           </Style>
> 
>         </StyleList>
> 
>       </Layer>
> 
>     </LayerList>
> 
>   </ViewContext>
>   


-- 
Daniel Morissette
http://www.mapgears.com/


Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te 
informeren. Wij adviseren u om bij twijfel over de juistheid of de 
volledigheid van de mail contact met afzender op te nemen.

This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************



More information about the mapserver-users mailing list