[Geoserver-users] Problems with WMS

Hello list,

I’ve been making some experiences with geoserver and mapfish (which includes openlayers and extjs). I was able to setup a nice mapfish framework with openlayers and google layers. The problem started after that, when i tried to add local stored in postgis through geoserver wms.
At first i thought it might be problems with projections and so i made new script with openlayers only and my wms layer. If i load this wms layer in a thick client (qgis, gvsig) everything appears ok. However, when i try to load it on openlayers i just get balnk screen with the layerswitcher and zoom controls.
I really don’t know if this is a problem with my geoserver or openlayers and so, i’m posting this message here.

My openlayers code is the following:

OpenLayers #panel { right: 0px; height: 30px; width: 200px; } #panel div { float: left; margin: 5px; }

Firebug sometimes give me 2 errors, other times none. These 2 errors are:

Use of getBoxObjectFor() is deprecated. Try to use element.getBoundingClientRect() if possible.
[Break on this error] undefined
Permission denied to get property Location.toString
[Break on this error] ccm_cfg.u = (ccm_cfg.u?ccm_cfg.u:‘’); cc…layer" />';document.write(ccm_fl_embed);
ccm_fl.js (line 1)

[Exception… “Component is not available” nsresult: “0x80040111 (NS_ERROR_NOT_AVAILABLE)” location: “JS frame :: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js :: sss_saveState :: line 1909” data: no]
[Break on this error] this._writeFile(this._sessionFile, oState.toSource());

I’ll try to give you my installation procedures.
I’ve installed Postgis and the EnterpriseDB ApachePHP (port 80). So my root directory is in
c:\Program Files\PostgreSQL\EnterpriseDB-ApachePHP\apache\www

Geoserver installed on port 8080. Limited SRS list to 27492, 900913, 4326

After that just copied mapfish client to www root directory.

Does anyone have an idea about what the problem might be???
Thanks very much in advance,

Hugo Martins

Hugo ha scritto:

Hello list,

I've been making some experiences with geoserver and mapfish (which includes openlayers and extjs). I was able to setup a nice mapfish framework with openlayers and google layers. The problem started after that, when i tried to add local stored in postgis through geoserver wms.
At first i thought it might be problems with projections and so i made new script with openlayers only and my wms layer. If i load this wms layer in a thick client (qgis, gvsig) everything appears ok. However, when i try to load it on openlayers i just get balnk screen with the layerswitcher and zoom controls.

Hard to say what might be wrong. Are you able to see your data
properly in the GeoServer map preview? Did you set your spatial
reference system properly in both postgis (geometry_columns table)
and in the GeoServer featureType config?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hello Andrea,

Yes i can see my data properly through the geoserver mappreview. I doubled and tripled checked if srs definition is correct both in postgis and geoserver, and yes they are. The thing that is very strange to me is that i’m able to load the data in wms format through thick clients. But until the moment, not through thin clients.

Any idea more??

Thanks,

Hugo

On Mon, Feb 16, 2009 at 2:24 PM, Andrea Aime <aaime@anonymised.com> wrote:

Hugo ha scritto:

Hello list,

I’ve been making some experiences with geoserver and mapfish (which includes openlayers and extjs). I was able to setup a nice mapfish framework with openlayers and google layers. The problem started after that, when i tried to add local stored in postgis through geoserver wms.
At first i thought it might be problems with projections and so i made new script with openlayers only and my wms layer. If i load this wms layer in a thick client (qgis, gvsig) everything appears ok. However, when i try to load it on openlayers i just get balnk screen with the layerswitcher and zoom controls.

Hard to say what might be wrong. Are you able to see your data
properly in the GeoServer map preview? Did you set your spatial
reference system properly in both postgis (geometry_columns table)
and in the GeoServer featureType config?

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hugo ha scritto:

Hello Andrea,

Yes i can see my data properly through the geoserver mappreview. I doubled and tripled checked if srs definition is correct both in postgis and geoserver, and yes they are. The thing that is very strange to me is that i'm able to load the data in wms format through thick clients. But until the moment, not through thin clients.

The GeoServer map preview is made with OpenLayers, so you can load with
a thin client, just not with yours :wink:

Any idea more??

Not really.
I'd suggest you compare the GeoServer preview settings with your
version and spot where the difference is.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.