Hi Andrea, It was that an XML error. Thank you.
On the other hand I've anothes question, I've noticed that MapServer doesn't support the buffer parameter in a GetFeatureInfo WMS request. Is that right? Regards, Fran Acuña El dom., 26 abr. 2020 a las 11:10, Andrea Aime (< [email protected]>) escribió: > Hi Fran, > simple XML error in your filter: > > <gml:Point<gml:coordinates> > > should be: > > <gml:Point><gml:coordinates> > > This one returns values: > > > http://www.juntadeandalucia.es/medioambiente/mapwms/REDIAM_PPHH_2012/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=MSPF_POLY&Filter=%3CFilter%3E%3CDWithin%3E%3CPropertyName%3EmsGeometry%3C/PropertyName%3E%3Cgml:Point%3E%3Cgml:coordinates%3E158380,4130457%3C/gml:coordinates%3E%3C/gml:Point%3E%3CDistance%20units=%27m%27%3E10000%3C/Distance%3E%3C/DWithin%3E%3C/Filter%3E > > Hope this helps > > Cheers > Andrea > > > On Sat, Apr 25, 2020 at 9:55 PM Fran Acuña Parra <[email protected]> > wrote: > >> Hi everyone, >> >> I'm new to this list and MapServer and would like some help with an issue >> that I'm facing with MapServer. >> >> I'm using the following request in order to get the closest feature from >> a layer given some specific coordinates: >> >> >> http://www.juntadeandalucia.es/medioambiente/mapwms/REDIAM_PPHH_2012/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=MSPF_POLY&Filter=<Filter><DWithin><PropertyName>msGeometry</PropertyName><gml:Point<gml:coordinates>158380,4130457</gml:coordinates></gml:Point><Distance >> units='m'>10000</Distance></DWithin></Filter> >> >> It returns the following error: >> >> msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in >> GetFeature : >> <Filter><DWithin><PropertyName>msGeometry</PropertyName><gml:Point<gml:coordinates>158380,4130457</gml:coordinates></gml:Point><Distance >> units='m'>10000</Distance></DWithin></Filter> >> >> But I don't know what could be wrong because the URL is based on the >> documentation example. I don't have control of the MapServer, but I have >> done a GetCapabilities request to the WFS server and it shows some warnings >> in the FeatureType for the layer: >> >> <FeatureType> >> <Name>MSPF_POLY</Name> >> <!-- >> WARNING: Mandatory metadata '..._title' was missing in this context. >> --> >> <Title>MSPF_POLY</Title> >> <SRS>EPSG:25830</SRS> >> <LatLongBoundingBox minx="100314" miny="3.98535e+06" maxx="615158" >> maxy="4.18983e+06"/> >> <!-- >> WARNING: Required Feature Id attribute (fid) not specified for this feature >> type. Make sure you set one of wfs_featureid, ows_featureid or gml_featureid >> metadata. >> --> >> </FeatureType> >> >> The point coordinates are in the same EPSG that the layer and The >> Filter_Capabilites seem to be OK too. So I don't know If I'm missing >> something. >> >> Thanks in advance. >> >> Fran Acuña >> >> >> _______________________________________________ >> mapserver-users mailing list >> [email protected] >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > > Regards, Andrea Aime > > == GeoServer Professional Services from the experts! Visit > http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf > Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa > (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 > http://www.geo-solutions.it http://twitter.com/geosolutions_it > ------------------------------------------------------- *Con riferimento > alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - > Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni > circostanza inerente alla presente email (il suo contenuto, gli eventuali > allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i > destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per > errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le > sarei comunque grato se potesse darmene notizia. This email is intended > only for the person or entity to which it is addressed and may contain > information that is privileged, confidential or otherwise protected from > disclosure. We remind that - as provided by European Regulation 2016/679 > “GDPR” - copying, dissemination or use of this e-mail or the information > herein by anyone other than the intended recipient is prohibited. If you > have received this email by mistake, please notify us immediately by > telephone or e-mail.* >
_______________________________________________ mapserver-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
