Hi Saul:

We are not there yet! Indeed it is only in the last 6 months that we 
have added OpenGIS geometry implementations to our build (in the 
unsupported) side of things.
However remember the disjoint method only accepted an opengis geometry 
as a helper method - what actually is created is a literal.

You will find FilterFactory2 contains some more forgiving methods that 
let you punt in Objects (in this case JTS objects) - but the effect is 
the same (a literal is created).

Cheers,
Jody
> Hey all,
>
> So I've got a JTS polygon.  I want to make a disjoint filter:
>
> CommonFactoryFinder.getFilterFactory(null).disjoint("SHAPE",***WHATGOESHERE***);
>
> How can I convert my JTS polygon into an opengis geometry?  Is there a 
> utility class somewhere that does this?  Can I just cast it?  Is there a 
> factory that I'll need to use to re-build it?
>
> Just curious!
>
> --saul
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Geotools-devel mailing list
> Geotools-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to