Opened 13 years ago

Closed 13 years ago

#768 closed defect (fixed)

Mapbender does not load GeoServer WMS and other WMS

Reported by: astrid_emde Owned by: kmq
Priority: major Milestone: 2.7 release
Component: administration Version: 2.7 rc1
Keywords: WMS Cc: christoph

Description

First error due to missing EPSG information in the next row see XXXX - here should be the EPSG Code from the BBOX which is missing in the GeoServer getCapabilities document:

Problem

  • For the root layer Geoserver only gives back one row with the LatLonBoundingBox the row with BoundingBox and the EPSG Code information is missing. Mapbender expects two rows and tries to transform with no EPSG-Code information
    <LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
    

Mapbender expects something like this:

        <LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
        <BoundingBox SRS="EPSG:4326" minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>

Error PostgreSQL

2011-01-28 21:40:47 CET ANWEISUNG: SELECT X(transform(GeometryFromText('POINT(-180 -90)',4326),)) as x, Y(transform(GeometryFromText('POINT(-180 -90)',4326),)) as y, Z(transform(GeometryFromText('POINT(-180 -90 )',4326),)) as z 
2011-01-28 21:40:47 CET FEHLER: Syntaxfehler bei »)« bei Zeichen 59 2011-01-28 21:40:47 CET ANWEISUNG: SELECT X(transform(GeometryFromText('POINT(180 90)',4326),)) as x, Y(transform(GeometryFromText('POINT(180 90)',4326),)) as y, Z(transform(GeometryFromText('POINT(180 90 )',4326),)) as z
2011-01-28 21:40:47 CET FEHLER: Einfügen oder Aktualisieren in Tabelle »layer_keyword« verletzt Fremdschlüssel-Constraint »fkey_layer_id_fkey_keyword_id« 2011-01-28 21:40:47 CET DETAIL: Schlüssel (fkey_layer_id)=(21330) ist nicht in Tabelle »layer« vorhanden. 2011-01-28 21:40:47 CET ANWEISUNG: INSERT INTO layer_keyword (fkey_keyword_id,fkey_layer_id)VALUES ($1,$2) 

Try with

GeoServer WMS

Change History (3)

comment:1 by astrid_emde, 13 years ago

Cc: kmq removed
Milestone: 2.7 release
Owner: changed from dev to kmq

comment:2 by astrid_emde, 13 years ago

  • class_wms calls function transform(..)

row 1964:

				$pointMin->transform($supportedSrs[$k]);	
				$pointMax->transform($supportedSrs[$k]);

next step in class_point.php function transform($toEpsg)

  • row 162
  • error occurs in classes/class_point.php

Error occurs as no value is passed as EPSG

comment:3 by astrid_emde, 13 years ago

Resolution: fixed
Status: newclosed

Fixed bug in changeset:

I check the case that EPSG is and then I do not call the function transform(..). We have to check the code, whether this change was ok.

Note: See TracTickets for help on using tickets.