I am trying to get some features from GeoServer if they are inside a certain area, after making a request to the local GeoServer I get the following error:
org.opengis.referencing.NoSuchAuthorityCodeException: No authority was defined for code "-5398011,-3010158,-5446939,-3010158". Did you forget "AUTHORITY:NUMBER"?
I got those coordinates in the dragbox end function of OpenLayers:
dragBox.on("boxend", function () {
var rotation = map.getView().getRotation();
var oblique = rotation % (Math.PI / 2) !== 0;
var candidateFeatures = oblique ? [] : selectedFeatures;
var alimentadores = [];
var equipamentos = [];
var bbox = dragBox.getGeometry().getCoordinates();
...url = ...+ "&BBOX=" + extent.join(",")
The request URL:
http://localhost:8080/geoserver/Workspace/wfs?service=WFS&version=1.0.0&request=GetFeature&typeName=Workspace:layer&outputFormat=application%2Fjson&srsname=EPSG:4326&BBOX=-5446939,-3049279,-5398011,-3049279,-5398011,-3010158,-5446939,-3010158