Hello,

I've been trying to use CQL to make a DWITHIN filter like this...

DirectPosition2D pos = ...
double distance = ...
Unit<?> unit = 
featureType.getCoordinateReferenceSystem().getCoordinateSystem().getAxis(0).getUnit();
String unitName = unit.toString();

String filterString = String.format("DWITHIN( "the_geom", POINT(%f
%f), %s, %s)", pos.x, pos.y, distance, unitName);
Filter filter = CQL.toFilter(filterString);

But I run into trouble when CQL tries to parse the filter string and
doesn't recognize common unit names such as "m" for metre / meter.

Am I missing something ?

cheers
Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to