[Geoserver-users] WMS Fails for Polygon Data Set (WFS OK)

Hello.

I have a peculiar problem where a polygon feature set outputs WFS fine
but not WMS.

Initially I just had the data in ESRI shape files on Geoserver, and
had these symptoms, so I imported the data into Oracle 10g, but still
have the same problem.
The feature set seems to act as if it is empty - Geoserver does not
crash and uDig does not report an error.

uDig .log file ...

!ENTRY net.refractions.udig.catalog.internal.wms 4 0 2009-06-05 13:53:46.031
!MESSAGE GetMap:
http://10.150.11.65:8080/geoserver/wms?SERVICE=WMS&LAYERS=topp%3AGeology&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/png8&HEIGHT=582&TRANSPARENT=FALSE&REQUEST=GetMap&BBOX=140.9992999791,-37.5048655827,153.6384179014,-28.157370739500003&WIDTH=786&STYLES=geology&SRS=EPSG:4283&VERSION=1.1.1
(nothing follows this)

When I click on the link in the Geoserver demo area -
http://10.150.11.65:8080/geoserver/wms?bbox=140.367344082985,-37.972240324859996,154.270373797515,-27.68999599734&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=topp:Geology&width=800&height=555&srs=EPSG:4283
I immediately get a blank 'Openlayers Map Preview' with web page status 'done'.

This feature set (Geology) has 19,000 polygons.

I have 2 working feature sets in the same Oracle data store -
Counties (USA sample data) - 6,460 polygons
Deposit - 29,000 points

I have compared the featureset web pages, and have made the 3 the same
as much as possible.

USER_SDO_GEOM_METADATA table ..

COUNTIES
GEOM
SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X', -180, 180, .00000005),
SDO_DIM_ELEMENT('Y', -90, 90, .00000005))
      8265

DEPOSIT
POINT
SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONG', 141, 154, .00000005),
SDO_DIM_ELEMENT('LAT', -38, -28, .00000005))
      4203

GEOLOGY
POLYGON
SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X', 140.9993, 153.638418, .00000005),
SDO_DIM_ELEMENT('Y', -37.504866, -28.157371, .00000005))
      4283

Can anyone help me ?

Regards,
David Collins
NSW, Australia

David Collins ha scritto:

Hello.

I have a peculiar problem where a polygon feature set outputs WFS fine
but not WMS.

The data reading part in WFS and WMS is the same. So usually a dataset
that does not work fine with WMS fails due to improper styling,
invalid bbox or spatial reference system issue.

What if you try to display that layer with the default "polygon" style?

If that does not help, can you send me the shapefile version of
that dataset by private mail (or put it onto a http/ftp server)
so that I can give it a look?

Cheers
Andrea

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

Thanks, Andrea.

You were absolutely right - the style layer descriptor was the problem.

FYI, the SLD file was generated by the ArcMap2SLDConverter.exe program
( http://apps.geoinform.fh-mainz.de/arcmap2sld/ArcMap2SLDConverter_Eng.htm
).

It seems that changing the header fixed the problem -
from ..
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<sld:StyledLayerDescriptor version="1.0.0"
xmlns:sld="http://www.opengis.net/sld&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;
to..
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- <StyledLayerDescriptor version="1.0.0"
xmlns:sld="http://www.opengis.net/sld&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt; -->
<StyledLayerDescriptor version="1.0.0"
xmlns="http://www.opengis.net/sld&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd&quot;&gt;

FYI, the problem SLD file validated OK when submitted in the Geoserver
style editing page.

Regards,
David Collins

On Fri, Jun 5, 2009 at 4:05 PM, Andrea Aime<aaime@anonymised.com> wrote:

David Collins ha scritto:

Hello.

I have a peculiar problem where a polygon feature set outputs WFS fine
but not WMS.

The data reading part in WFS and WMS is the same. So usually a dataset
that does not work fine with WMS fails due to improper styling,
invalid bbox or spatial reference system issue.

What if you try to display that layer with the default "polygon" style?

If that does not help, can you send me the shapefile version of
that dataset by private mail (or put it onto a http/ftp server)
so that I can give it a look?

Cheers
Andrea

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

David Collins ha scritto:

Thanks, Andrea.

You were absolutely right - the style layer descriptor was the problem.

FYI, the SLD file was generated by the ArcMap2SLDConverter.exe program
( http://apps.geoinform.fh-mainz.de/arcmap2sld/ArcMap2SLDConverter_Eng.htm
).

It seems that changing the header fixed the problem -
from ..
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<sld:StyledLayerDescriptor version="1.0.0"
xmlns:sld="http://www.opengis.net/sld&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;
to..
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- <StyledLayerDescriptor version="1.0.0"
xmlns:sld="http://www.opengis.net/sld&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt; -->
<StyledLayerDescriptor version="1.0.0"
xmlns="http://www.opengis.net/sld&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd&quot;&gt;

FYI, the problem SLD file validated OK when submitted in the Geoserver
style editing page.

Interesting. Can I have a copy of the original SLD?
Cheers
Andrea

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