[mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors?
All, I've got a filter request working with DWITHIN but get seemingly weird returns.. Using EPSG:4326, and "m" (Does this = Miles??) I get returns that I expect when using fractional "m" values. What other unit designations are honored? I don't see anything in the getCapabilities about units or the MapServer docs. Lastly, does MapServer support CQL (yet?), I saw references to this in my searching. Thanks bobb ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors?
On 11/07/2010 5:26 AM, Blammo wrote: All, I've got a filter request working with DWITHIN but get seemingly weird returns.. Using EPSG:4326, and "m" (Does this = Miles??) I get returns that I expect when using fractional "m" values. What other unit designations are honored? I don't see anything in the getCapabilities about units or the MapServer docs. here are the units and abbreviations that can be used: - m or meters: can be used to indicate meters - km or kilometers: kilometers - NM: nauticalmiles - mi or miles : miles - in or inches : inches - ft or feet : feet - deg or dd: degree - px: pixels ticket was added to add this in the docs (http://trac.osgeo.org/mapserver/ticket/3488) Lastly, does MapServer support CQL (yet?), I saw references to this in my searching. Not that I am aware of. best regards -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors?
Ok, I got another related question . . On a DWithin return list, any chance that the results are ordered by distance from a point, closest first? Or isn't this something I can depend on from MapServer? bobb I'll need to do a couple of tests and see what happensOn 7/11/2010 8:43 AM, Yewondwossen Assefa wrote: On 11/07/2010 5:26 AM, Blammo wrote: All, I've got a filter request working with DWITHIN but get seemingly weird returns.. Using EPSG:4326, and "m" (Does this = Miles??) I get returns that I expect when using fractional "m" values. What other unit designations are honored? I don't see anything in the getCapabilities about units or the MapServer docs. here are the units and abbreviations that can be used: - m or meters: can be used to indicate meters - km or kilometers: kilometers - NM: nauticalmiles - mi or miles : miles - in or inches : inches - ft or feet : feet - deg or dd: degree - px: pixels ticket was added to add this in the docs (http://trac.osgeo.org/mapserver/ticket/3488) Lastly, does MapServer support CQL (yet?), I saw references to this in my searching. Not that I am aware of. best regards ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors?
More info, Using this service call: https://www.sharedgeo.org/MNGEO-ro/public/ows?SERVICE=wfs&VERSION=1.1.0&REQUEST=getFeature&TYPENAME=layer_3&FILTER=%3CFilter%3E%3CDWithin%3E%3CPropertyName%3EGeometry%3C/PropertyName%3E%3Cgml:Point%3E%3Cgml:coordinates%3E-93.093,44.955%3C/gml:coordinates%3E%3C/gml:Point%3E%3CDistance%20units=%27f%27%3E0.0438%3C/Distance%3E%3C/DWithin%3E%3C/Filter%3E I tried, FT, FEET, Ft, ft, Feet and f, (this last, the "f" is the only thing that changed the results, but it only increased the return from three to six points): I used the same unit distance of 0.0438, which the majority of time returns three points. These points in ground units are actually within ~2360ft of each other. I have no idea how the 0.0438 number relates to that. Is it possibly related to the LAT/LON coordinate system? This is working enough for me to get through my current stage of development, I'm just trying to get a handle on how the filter units are supposed to relate to the map units. Maybe DWithin has a PROJ option or something?? Thanks bobb On 7/11/2010 8:43 AM, Yewondwossen Assefa wrote: On 11/07/2010 5:26 AM, Blammo wrote: All, I've got a filter request working with DWITHIN but get seemingly weird returns.. Using EPSG:4326, and "m" (Does this = Miles??) I get returns that I expect when using fractional "m" values. What other unit designations are honored? I don't see anything in the getCapabilities about units or the MapServer docs. here are the units and abbreviations that can be used: - m or meters: can be used to indicate meters - km or kilometers: kilometers - NM: nauticalmiles - mi or miles : miles - in or inches : inches - ft or feet : feet - deg or dd: degree - px: pixels ticket was added to add this in the docs (http://trac.osgeo.org/mapserver/ticket/3488) Lastly, does MapServer support CQL (yet?), I saw references to this in my searching. Not that I am aware of. best regards ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors?
On 11/07/2010 5:40 PM, Blammo wrote: Ok, I got another related question . . On a DWithin return list, any chance that the results are ordered by distance from a point, closest first? Or isn't this something I can depend on from MapServer? There is no guarantee on that. The search is done within the distance and all points that fit the criteria are returned in the order they are found. -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors?
On 11/07/2010 6:02 PM, Blammo wrote: More info, Using this service call: https://www.sharedgeo.org/MNGEO-ro/public/ows?SERVICE=wfs&VERSION=1.1.0&REQUEST=getFeature&TYPENAME=layer_3&FILTER=%3CFilter%3E%3CDWithin%3E%3CPropertyName%3EGeometry%3C/PropertyName%3E%3Cgml:Point%3E%3Cgml:coordinates%3E-93.093,44.955%3C/gml:coordinates%3E%3C/gml:Point%3E%3CDistance%20units=%27f%27%3E0.0438%3C/Distance%3E%3C/DWithin%3E%3C/Filter%3E I tried, FT, FEET, Ft, ft, Feet and f, (this last, the "f" is the only thing that changed the results, but it only increased the return from three to six points): I used the same unit distance of 0.0438, which the majority of time returns three points. These points in ground units are actually within ~2360ft of each other. I have no idea how the 0.0438 number relates to that. Is it possibly related to the LAT/LON coordinate system? This is working enough for me to get through my current stage of development, I'm just trying to get a handle on how the filter units are supposed to relate to the map units. Maybe DWithin has a PROJ option or something?? When the units in unrecognized (like "f" in this case), It should be ignored the and distance is assumed to be the same units as the gml element that was part of the query. You can add a projection to the gml element using the srsrName element. best regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users