<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Garamond;
        panose-1:2 2 4 4 3 3 1 1 8 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue leftmargin=5 topmargin=5>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Axel,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thank you for sending me your data. I
believe the problem stems from the definition you are using for EPSG:31467 in
your config file:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><translate
from="EPSG:31467">GEOGCS["DHDN", DATUM["Deutsches
Hauptdreiecksnetz", SPHEROID["Bessel 1841", 6377397.155,
299.1528128, AUTHORITY["EPSG","7004"]], TOWGS84[598.1,
73.7, 418.2, 0.202, 0.045, -2.455, 6.7],
AUTHORITY["EPSG","6314"]], PRIMEM["Greenwich",
0.0, AUTHORITY["EPSG","8901"]], UNIT["degree of
angle",0.017453292519943295], AXIS["Geodetic latitude",NORTH],
AXIS["Geodetic longitude",EAST],
AUTHORITY["EPSG","4314"]],
PROJECTION["Transverse_Mercator"], PARAMETER["semi_major",
6377397.155], PARAMETER["semi_minor", 6356078.962818189],
PARAMETER["central_meridian", 9.0],
PARAMETER["latitude_of_origin", 0.0],
PARAMETER["scale_factor", 1.0], PARAMETER["false_easting",
3500000.0], PARAMETER["false_northing", 0.0],
UNIT["metre",1.0], AXIS["Northing",NORTH],
AXIS["Easting",EAST], AUTHORITY["EPSG","31467"]]
</translate><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>When I debugged into the code, the meters-per-unit
value calculated for this coordinate system came out to be a very large value,
and this in turn caused the map to be requested at a minute scale (close to
1:300000000). That is why nothing showed up.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I used the html test pages (<a
href="http://localhost/mapguide/mapagent/index.html">http://localhost/mapguide/mapagent/index.html</a>)
to call GetSpatialContexts (under the Feature Service API grouping) for the
feature source I created from your data using the DHDN.Gauss3d-3 coordinate
system. This gave me the actual WKT string used for this feature source. If I
substitute that into the EPSG:31467 definition, as below, I can successfully
retrieve a map image </span></font><font size=2 color=navy face=Wingdings><span
style='font-size:10.0pt;font-family:Wingdings;color:navy'>J</span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><translate
from="EPSG:31467">PROJCS["DHDN.Gauss3d-3",GEOGCS["DHDN.LL",DATUM["DHDN",SPHEROID["BESSEL",6377397.155,299.15281535],TOWGS84[582.0000,105.0000,414.0000,-1.040000,-0.350000,3.080000,8.30000000]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["false_easting",3500000.000],PARAMETER["false_northing",0.000],PARAMETER["scale_factor",1.000000000000],PARAMETER["central_meridian",9.00000000000000],PARAMETER["latitude_of_origin",0.00000000000000],UNIT["Meter",1.00000000000000]]
</translate><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>This is the URL I used for the WMS GetMap
request:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a
href="http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Axel/Layers/Genehmigungsgrenze%202001&BBOX=3556793.54,5374822.7,3557330.2495,5375186.37&CRS=EPSG:31467&WIDTH=600&HEIGHT=400&BGCOLOR=0x0000FF&TRANSPARENT=FALSE&FORMAT=image/PNG">http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Axel/Layers/Genehmigungsgrenze%202001&BBOX=3556793.54,5374822.7,3557330.2495,5375186.37&CRS=EPSG:31467&WIDTH=600&HEIGHT=400&BGCOLOR=0x0000FF&TRANSPARENT=FALSE&FORMAT=image/PNG</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I hope this helps.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Chris.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Chris Claydon <br>
<b><span style='font-weight:bold'>Sent:</span></b> September 18, 2006 12:28 PM<br>
<b><span style='font-weight:bold'>To:</span></b> 'users@mapguide.osgeo.org'<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [mapguide-users]
metadata in a layer for wms-service</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Axel,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Would you be able to send me the data you
are using for this layer?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I’d like to try to reproduce what
you’re doing.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Chris.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>p.s. One thing you could try, though it is
probably not ideal, is to add a mapping for EPSG:4326 to your OgcWmsService.config.awd
file as well. That way, if the client does attempt to use EPSG:4326 instead of
EPSG:31467, at least you may still get a map image returned.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Axel Dörr
[mailto:a.doerr@doerrib.de] <br>
<b><span style='font-weight:bold'>Sent:</span></b> September 17, 2006 4:10 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">users@mapguide.osgeo.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> [mapguide-users] metadata
in a layer for wms-service</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=black
face=Garamond><span style='font-size:10.0pt;font-family:Garamond;color:black'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'>Hello list,</span></font><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'>once again i need
some help to deliver maps via wms .<br>
<br>
With the friendly and very useful help of Andy and Bruce i got the right WKT
Translation for EPSG:31467.<br>
<br>
I added a <translate> command in the OgcWmsService.config.awd
- and i hope found the correct place for it. Have a look at the
attachment.<br>
<br>
The properties of the layer to publish are populated in
"bounds-field" with: <Bounds SRS="EPSG:31467" west="3556600"
south="5374600" east="3557700"
north="5375600"/><br>
<br>
The field for "extended metadata" in studio for the requested layer
is empty. <br>
<br>
The getmap-request looks like this: </span></font><font size=2 color=black
face=Garamond><span style='font-size:10.0pt;font-family:Garamond;color:black'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><a
href="http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GETMAP&SERVICE=WMS&VERSION=1.1.1&STYLE=DEFAULT&FORMAT=image/png&SRS=EPSG:31467&BBOX=3556600,5374600,3557700,5375600&WIDTH=200&HEIGHT=200&LAYERS=Test/Layer/Genehmigungsgrenze%202001">http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GETMAP&SERVICE=WMS&VERSION=1.1.1&STYLE=DEFAULT&FORMAT=image/png&SRS=EPSG:31467&BBOX=3556600,5374600,3557700,5375600&WIDTH=200&HEIGHT=200&LAYERS=Test/Layer/Genehmigungsgrenze%202001</a><o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'><br>
</span></font><font color=black face=Garamond><span style='font-family:Garamond;
color:black'>With this i don´t get an error-message anymore, but a map is also
not displayed.<br>
<br>
Gaia tells me within the Selected Layer Info:<br>
<br>
Name: Test/Layer/Genehmigungsgrenze 2001<br>
Title: TEST WMS<br>
Namespace: <br>
Keywords: </span></font><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'>LL BBox:
(-180,-90;180,90)</span></font><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'>BBox:
(-180,-90;180,90)<br>
BBox: (3556600,5374600;3557700,5375600)</span></font><font size=2 color=black
face=Garamond><span style='font-size:10.0pt;font-family:Garamond;color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'>Supported SRS: <br>
EPSG:31467<br>
EPSG:4326</span></font><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'>The Log of Gaia is
the following:</span></font><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'><ServiceExceptionReport
version="1.1.1"></span></font><font size=2 color=black
face=Garamond><span style='font-size:10.0pt;font-family:Garamond;color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'> <ServiceException
code="InvalidSRS"></span></font><font size=2 color=black
face=Garamond><span style='font-size:10.0pt;font-family:Garamond;color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'> The spatial
reference system specified is not supported. (Found SRS=EPSG:4326)</span></font><font
size=2 color=black face=Garamond><span style='font-size:10.0pt;font-family:
Garamond;color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'> </ServiceException></span></font><font
size=2 color=black face=Garamond><span style='font-size:10.0pt;font-family:
Garamond;color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'></ServiceExceptionReport></span></font><font
size=2 color=black face=Garamond><span style='font-size:10.0pt;font-family:
Garamond;color:black'><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Garamond><span
style='font-size:10.0pt;font-family:Garamond;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'><br>
---------------------------------------<br>
Error during HandlerWMS:AsyncReader<br>
Source URL = <a href="http://entwicklung/mapguide/mapagent/mapagent.fcgi">http://entwicklung/mapguide/mapagent/mapagent.fcgi</a>?<br>
Layer name = Test/Layer/Genehmigungsgrenze 2001<br>
---------------------------------------<br>
CarbonTools.Core.Base.CarbonToolsException: Server responded with an error<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'> at
CarbonTools.Core.WMS.HandlerWMS.AsyncReader(IAsyncResult result)<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=black
face=Garamond><span style='font-size:12.0pt;font-family:Garamond;color:black'><br>
<br>
Apparently EPSG:4326 wins against EPSG:31467. At least this is my impression.<o:p></o:p></span></font></p>
</div>
<div>
<div>
<p class=MsoNormal><font size=3 color=black face=Garamond><span
style='font-size:12.0pt;font-family:Garamond;color:black'>Regards,<br>
<br>
Axel</span></font><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'><o:p></o:p></span></font></p>
</div>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'> <o:p></o:p></span></font></p>
</div>
</div>
</body>
</html>