Announcement

Collapse
No announcement yet.

Problem With WMS returning Bounding Box greater than 180 degrees

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem With WMS returning Bounding Box greater than 180 degrees

    I'm having trouble with one RPF mapsets (CADRG C2, 14446). All of the rest of them are fine. (14445, 14447-14450)

    In get capabilities I get
    <EX_GeographicBoundingBox>
    <westBoundLongitude>-180.0</westBoundLongitude>
    <eastBoundLongitude>198.9473684210526</eastBoundLongitude>
    <southBoundlatitude>0.0</southBoundlatitude>
    <northBoundLatitude>90.0</northBoundLatitude>
    </EX_GeographicBoundingBox>
    <BoundingBox miny="0.0" minx="-180.0" maxy="90.0" maxx="198.9473684210526" CRS="ESPG:4326"/>

    But if I let the system determine the values by setting the <auto-discovery run=”true” period=”0” />
    it sets the values to
    <EX_GeographicBoundingBox>
    <westBoundLongitude>-180.0</westBoundLongitude>
    <eastBoundLongitude>180.0</eastBoundLongitude>
    <southBoundlatitude>-90.0</southBoundlatitude>
    <northBoundLatitude>0</northBoundLatitude>
    </EX_GeographicBoundingBox>
    <BoundingBox miny="0" minx="-180.0" maxy="90.0" maxx="180.0" CRS="ESPG:4326"/>

    How can I manually set the Bounding Box to (miny=0.0,minx= -180.0,maxy= 90, maxx= 180)

  • #2
    Hi,
    It has perhaps no relation with your problem, but the CRS code must be EPSG not ESPG (stands for European Petroleum Survey Group)
    Cheers

    Comment


    • #3
      Thanks, that was just a typo - my system is not connected to the internet so I have to type in what I'm seeing.

      Seems that it would work if I could force it to have a maxx value of 180.

      Comment


      • #4
        How courageous you are
        Sorry i don't know about your CADRG real problem.

        Comment


        • #5
          partial solution

          I was able to get the maps to display by putting the following in the capabilities_template.xml file.
          But I still have the <mapsource> information for the CADRG in the wms.config.xml file. So the getCapabilites returns two entries for CADRG 14446 one with maxx="180.0" and one with maxx="198.94736842105626"

          <layer>
          <Name>CADRG_14446</Name>
          <Title>World 2D Map - 14446</Title>
          <Abstract>
          Compressed ARC Raster Graphics
          </Abstract>
          <KeywordList>
          RPF
          CADRG
          </KeywordList>
          <CRS>CRS:84</CRS>
          <EX_GeographicBoundingBox>
          <westBoundLongitude>-180.0</westBoundLongitude>
          <eastBoundLongitude>180.0</eastBoundLongitude>
          <southBoundlatitude>-90.0</southBoundlatitude>
          <northBoundLatitude>0</northBoundLatitude>
          </EX_GeographicBoundingBox>
          <BoundingBox miny="0" minx="-180.0" maxy="90.0" maxx="180.0" CRS="ESPG:4326"/>
          </Layer>

          Comment

          Working...
          X