Skip to content

Could the set of rel="alternate" map-link elements include projection="custom-projection-here" ? #97

@prushforth

Description

@prushforth

Currently, even if an alternate custom projection is defined, it is not listed in the rel="alternate" links. Might it be practically possible / useful to include such a link?

e.g. this is defined and rendered:

<mapml- xmlns="http://www.w3.org/1999/xhtml">
  <map-head>
    <map-title>Current Conditions</map-title>
    <map-base href="http://localhost:8080/geoserver/wms"></map-base>
    <map-meta charset="utf-8"></map-meta>
    <map-meta content="text/mapml;projection=MAPML:BCALBERS" http-equiv="Content-Type"></map-meta>
    <map-link href="http://localhost:8080/geoserver/msc/ows?request=GetLegendGraphic&amp;service=WMS&amp;format=image%2Fpng&amp;version=1.3.0&amp;layer=msc%3ABC_CONDITIONS" rel="legend"></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Atrue%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=EPSG%3A3005&amp;service=WMS&amp;bbox=-1.3228052404627757E7%2C-8558822.529592017%2C1.4929124260812046E7%2C1.6668226238650437E7&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;styles=&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="self style" title=""></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Atrue%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3AOSMTILE&amp;service=WMS&amp;bbox=-1.9997545994532578E7%2C-2.6990483900319558E7%2C2.0023432866572395E7%2C2.0280826765445303E7&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="alternate" projection="OSMTILE"></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Atrue%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3ACBMTILE&amp;service=WMS&amp;bbox=-3.6789158462425494E8%2C-3.407050070132815E8%2C3.763753448303667E8%2C4.143228772335117E8&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="alternate" projection="CBMTILE"></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Atrue%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3AAPSTILE&amp;service=WMS&amp;bbox=-8.324927820817502E8%2C-5.35149319798918E8%2C4.769134070174556E8%2C6.906323711854142E8&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="alternate" projection="APSTILE"></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Atrue%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3AWGS84&amp;service=WMS&amp;bbox=-180.0%2C-90.0%2C180.0%2C90.0&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="alternate" projection="WGS84"></map-link>
    <map-style>.bbox {display:none} </map-style>
  </map-head>
  <map-body>
    <map-extent units="BCALBERS" label="Current Conditions" checked="checked">
      <map-input name="z" type="zoom" min="0" max="13"></map-input>
      <map-input name="xmin" type="location" rel="map" position="top-left" axis="easting" units="pcrs" min="-1.3228052404627757E7" max="1.4929124260812046E7"></map-input>
      <map-input name="ymin" type="location" rel="map" position="bottom-left" axis="northing" units="pcrs" min="-8558822.529592017" max="1.6668226238650437E7"></map-input>
      <map-input name="xmax" type="location" rel="map" position="top-right" axis="easting" units="pcrs" min="-1.3228052404627757E7" max="1.4929124260812046E7"></map-input>
      <map-input name="ymax" type="location" rel="map" position="top-left" axis="northing" units="pcrs" min="-8558822.529592017" max="1.6668226238650437E7"></map-input>
      <map-input name="w" type="width" min="1" max="4096"></map-input>
      <map-input name="h" type="height" min="1" max="4096"></map-input>
      <map-link tref="https://geo.weather.gc.ca/geomet?request=GetMap&amp;crs=EPSG:3005&amp;service=WMS&amp;bbox={xmin},{ymin},{xmax},{ymax}&amp;layers=CURRENT_CONDITIONS&amp;format=image/png&amp;width={w}&amp;styles=&amp;language=en&amp;version=1.3.0&amp;transparent=true&amp;height={h}" rel="image"></map-link>
      <map-input name="i" type="location" axis="i" units="map"></map-input>
      <map-input name="j" type="location" axis="j" units="map"></map-input>
      <map-link tref="https://geo.weather.gc.ca/geomet?request=GetFeatureInfo&amp;query_layers=CURRENT_CONDITIONS&amp;crs=EPSG:3005&amp;bbox={xmin},{ymin},{xmax},{ymax}&amp;language=en&amp;version=1.3.0&amp;transparent=true&amp;service=WMS&amp;layers=CURRENT_CONDITIONS&amp;width={w}&amp;x={i}&amp;feature_count=50&amp;y={j}&amp;styles=&amp;info_format=text/plain&amp;height={h}" rel="query"></map-link>
    </map-extent>
  </map-body>
</mapml->

but the alternates have no link back to the above document:

<mapml- xmlns="http://www.w3.org/1999/xhtml">
  <map-head>
    <map-title>Current Conditions</map-title>
    <map-base href="http://localhost:8080/geoserver/wms"></map-base>
    <map-meta charset="utf-8"></map-meta>
    <map-meta content="text/mapml;projection=OSMTILE" http-equiv="Content-Type"></map-meta>
    <map-link href="http://localhost:8080/geoserver/msc/ows?request=GetLegendGraphic&amp;service=WMS&amp;format=image%2Fpng&amp;version=1.3.0&amp;layer=msc%3ABC_CONDITIONS" rel="legend"></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Atrue%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3AOSMTILE&amp;service=WMS&amp;bbox=-1.9997545994532578E7%2C-2.6990483900319558E7%2C2.0023432866572395E7%2C2.0280826765445303E7&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;styles=&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="self style" title=""></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Atrue%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3ACBMTILE&amp;service=WMS&amp;bbox=-8079209.970065934%2C-3626624.3209499544%2C8281691.190930627%2C1.2335983446294941E7&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="alternate" projection="CBMTILE"></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Atrue%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3AAPSTILE&amp;service=WMS&amp;bbox=-1.06373184982574E7%2C-1.06373184982574E7%2C1.46373184982574E7%2C1.46373184982574E7&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="alternate" projection="APSTILE"></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Atrue%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3AWGS84&amp;service=WMS&amp;bbox=-179.6410121177173%2C-85.0%2C179.87355784583144%2C85.0&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="alternate" projection="WGS84"></map-link>
    <map-style>.bbox {display:none} </map-style>
  </map-head>
  <map-body>
    <map-extent units="OSMTILE" label="Current Conditions" checked="checked">
      <map-input name="z" type="zoom" min="0" max="18"></map-input>
      <map-input name="xmin" type="location" rel="map" position="top-left" axis="easting" units="pcrs" min="-1.9997545994532578E7" max="2.0023432866572395E7"></map-input>
      <map-input name="ymin" type="location" rel="map" position="bottom-left" axis="northing" units="pcrs" min="-2.6990483900319558E7" max="2.0280826765445303E7"></map-input>
      <map-input name="xmax" type="location" rel="map" position="top-right" axis="easting" units="pcrs" min="-1.9997545994532578E7" max="2.0023432866572395E7"></map-input>
      <map-input name="ymax" type="location" rel="map" position="top-left" axis="northing" units="pcrs" min="-2.6990483900319558E7" max="2.0280826765445303E7"></map-input>
      <map-input name="w" type="width" min="1" max="4096"></map-input>
      <map-input name="h" type="height" min="1" max="4096"></map-input>
      <map-link tref="https://geo.weather.gc.ca/geomet?request=GetMap&amp;crs=EPSG:3857&amp;service=WMS&amp;bbox={xmin},{ymin},{xmax},{ymax}&amp;layers=CURRENT_CONDITIONS&amp;format=image/png&amp;width={w}&amp;styles=&amp;language=en&amp;version=1.3.0&amp;transparent=true&amp;height={h}" rel="image"></map-link>
      <map-input name="i" type="location" axis="i" units="map"></map-input>
      <map-input name="j" type="location" axis="j" units="map"></map-input>
      <map-link tref="https://geo.weather.gc.ca/geomet?request=GetFeatureInfo&amp;query_layers=CURRENT_CONDITIONS&amp;crs=EPSG:3857&amp;bbox={xmin},{ymin},{xmax},{ymax}&amp;language=en&amp;version=1.3.0&amp;transparent=true&amp;service=WMS&amp;layers=CURRENT_CONDITIONS&amp;width={w}&amp;x={i}&amp;feature_count=50&amp;y={j}&amp;styles=&amp;info_format=text/plain&amp;height={h}" rel="query"></map-link>
    </map-extent>
  </map-body>
</mapml->

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaquestionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions