On Fri, Jun 22, 2012 at 11:32 AM, Mark Paxton <[email protected]> wrote:
> Hi all,
>
> I'm working on a project with geotools at the moment and have run into a
> few issues - I'd like to run them by the list to ask whether they are bugs
> or an issue with my understanding of them. First when using the "like"
> filter:
>
> f = filterFactory2.like(filterFactory2.property("myProperty"), "findMe");
>
> In the examples/documentation the wildcard is given as "%" however it
> appears to be impletmented as ".?" and ".*".
>
Hum, afaik the defaults are * and ? (without the dots), that's what we have
around in the tests at least.
Some tests are also explicit and have a pattern like:
PropertyIsLike caseSensitiveLike =
ff.like(ff.property(aname("stringProperty")), "Z*", "*", "?", "\\", true);
>
> Also, the filter only evaluates as true on a full match of the input
> string e.g. Matcher.matches() method. I can't get a filter to work so that
> I can select features based on if a property containing a string, e.g.
>
> myFeature.myProperty= "abcFindMedef"
>
> with the filter:
>
> like(filterFactory2.property("myProperty"), ".*findMe.*");
>
>
I know this works against database data, what data source are you using?
>
> I also had an issue with the documentation for ExternalGraphic:
> http://docs.geotools.org/latest/userguide/library/render/style.html It
> seems that:
>
> symbols.add(sf.externalGraphic(png, "png", null)); // png preferred
>
> Should be
>
> symbols.add(sf.externalGraphic(png, "image/png", null)); // png preferred
>
>
> Any thoughts on this would be appreciated...
>
The second is indeed the correct one
Cheers
Andrea
--
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users