Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm trying to limit WMS layer to a specific BBOX.

mainLayer.mergeNewParams({
    'CQL_FILTER' : "BBOX(geom, 6541844, 5577147, 6584851, 5620154)"
});

Which gives following exception in geoserver's log:

Internal error while evaluating [window SRID does not match layer SRID] operator ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 286.

Obviously geoserver hasn't pass SRID information of my BBOX to an oracle sdo filter. How can I deal with that? Should I edit Geoserver source or is there any Openlayers way to alter "window" SRID in cql_filter query?

Openlayers version: 2.11, Geoserver version: 2.1.2

This question is related with another question: Restrict CQL filter to an specific BBOX

share|improve this question
1  
are those coordinates in the projection of your map? which WMS version are you using? –  iant Mar 21 '12 at 14:16
    
yeah, they're almost the same as the original bbox of the map. WMS is 1.1.1 (or 1.3.0) –  denu Mar 22 '12 at 7:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.