[Geoserver-users] wms: no map image responded

Hi list,
i’ve just created a FeatureType and wanted to display it in the preview, but got only a white screen. I tried with the according WMS request in the browser with FORMAT=image/jpeg, but also no image. But the connection and so on is o.k. I tested the featuretype with a wfs request and got the whole gml back. I think there’s something with the style declaration of the featuretype, because when i look at the request which is generated when previewing it, the style reference is missing:

http://localhost:8080/geoserver/wms?bbox=3398922.1680102353,5459865.026371823,3600040.1697800444,5737732.46990811&styles=&Format=application/openlayers&request=GetMap&layers=ora:FFH_SDO&width=448&height=550&srs=EPSG:31467

But when i look at the featuretype configuration (info.xml) it has the the correct sld declaration :

FFH_SDO 31467 0 FFH_SDO_Type Generated from natur / FFH_SDO natur FFH_SDO

But maybe there is another reason for the missing map. Does anyone has an idea? Thankful for every hint.

Regards
Albrecht

Albrecht.Weiser@anonymised.com ha scritto:

Hi list,
i've just created a FeatureType and wanted to display it in the preview, but got only a white screen. I tried with the according WMS request in the browser with FORMAT=image/jpeg, but also no image. But the connection and so on is o.k. I tested the featuretype with a wfs request and got the whole gml back. I think there's something with the style declaration of the featuretype, because when i look at the request which is generated when previewing it, the style reference is missing:

_http://localhost:8080/geoserver/wms?bbox=3398922.1680102353,5459865.026371823,3600040.1697800444,5737732.46990811&styles=&Format=application/openlayers&request=GetMap&layers=ora:FFH_SDO&width=448&height=550&srs=EPSG:31467_ <http://localhost:8080/geoserver/wms?bbox=3398922.1680102353,5459865.026371823,3600040.1697800444,5737732.46990811&styles=&Format=application/openlayers&request=GetMap&layers=ora:FFH_SDO&width=448&height=550&srs=EPSG:31467&gt;

This is ok, it means the default style will be used. Can you try out with style=polygon or alternatively, line, point, depending on
the geometry type for your data?

But when i look at the featuretype configuration (info.xml) it has the the correct sld declaration :

<featureType datastore = "natur" >
<name>FFH_SDO</name>
<!--
   native wich EPGS code for the FeatureTypeInfoDTO
-->
<SRS>31467</SRS>
<SRSHandling>0</SRSHandling>
<title>FFH_SDO_Type</title>
<abstract>Generated from natur</abstract>
<wmspath>/</wmspath>
<numDecimals value = "8" />
<keywords>FFH_SDO natur</keywords>
<latLonBoundingBox dynamic = "false" miny = "49.389425754740856" maxy = "51.65342889816696" maxx = "10.25102483235866" minx = "7.7326126572955" />

<nativeBBox dynamic = "false" miny = "5473196.634956752" maxy = "5724349.103266227" maxx = "3586668.3781710677" minx = "3412348.3569018096" />

<!--
   the default style this FeatureTypeInfoDTO can be represented by.
   at least must contain the "default" attribute
-->
<styles default = "FFH_SDO" >
   <style>FFH_SDO</style>
</styles>
<cacheinfo enabled = "false" maxage = "" />
</featureType>

Can you post the SLD definition for the style FFH_SDO?
Cheers
Andrea

Albrecht.Weiser@anonymised.com ha scritto:

Hi list,
i've just created a FeatureType and wanted to display it in the

preview,

but got only a white screen. I tried with the according WMS request in

the browser with FORMAT=image/jpeg, but also no image. But the
connection and so on is o.k. I tested the featuretype with a wfs

request

and got the whole gml back. I think there's something with the style
declaration of the featuretype, because when i look at the request

which

is generated when previewing it, the style reference is missing:

_http://localhost:8080/geoserver/wms?bbox=3398922.1680102353,5459865.026
371823,3600040.1697800444,5737732.46990811&styles=&Format=application/op
enlayers&request=GetMap&layers=ora:FFH_SDO&width=448&height=550&srs=EPSG
:31467_

<http://localhost:8080/geoserver/wms?bbox=3398922.1680102353,5459865.026
371823,3600040.1697800444,5737732.46990811&styles=&Format=application/op
enlayers&request=GetMap&layers=ora:FFH_SDO&width=448&height=550&srs=EPSG
:31467>

This is ok, it means the default style will be used. Can you try out
with style=polygon or alternatively, line, point, depending on
the geometry type for your data?

That worked!

Can you post the SLD definition for the style FFH_SDO?
Cheers
Andrea

Ooooohps.. I took a look into my SLD and found a silly mistake with the
name. Now that works too ;o)

Thanks again, Andrea
bye
Albrecht