1

My layerset went wrong after mapproxy caching. Some layers are not rendering, and one of them shows this error message when I want to watch a preview:

<ServiceException>The requested Style can not be used with this layer. The style specifies an attribute of water and the layer is: test_osm:water </ServiceException>

</ServiceExceptionReport>

CSS code of this style:

*{ 
  fill: #91f1ff;

}

[@scale > 5000001] [name='Байкал' or water='sea' or natural = 'coastline']{ 
 fill: #91f1ff;

}

[@scale < 5000001] [@scale > 500001][water='sea' or water='canal' or water='reservoir' or water='canal' or water='lake' or water='cove' or water='river' or natural = 'water' or waterway ='riverbank']{ 
 fill: #91f1ff;

}



[@scale < 500001][water='sea' or water='canal' or water='reservoir' or water='canal' or water='lake' or water='cove' or water='river' or natural = 'water' or waterway ='riverbank' or water = 'pond']{
 fill: #91f1ff;
}

What could be the problem? Validation is OK and CSS files really exist on workspaces/myworkspace/styles...

closed as off-topic by Vince, JGH, LaughU, Fran Raga, MrXsquared Sep 14 at 14:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – Vince, JGH, LaughU, Fran Raga, MrXsquared
If this question can be reworded to fit the rules in the help center, please edit the question.

1

Problem was found. No problem with CSS and GeoServer. Problem with datasource - PostgreSQL DB. Part of data was droped. So GeoServer can't render data which doesn't exist.

Not the answer you're looking for? Browse other questions tagged or ask your own question.