Hi all,

How to create an org.geotools.geometry ? I am encoding an OGC Filter using
geotools 2.4, but the method needs this geometry. Follows code sample:

FilterFactory ff = CommonFactoryFinder.getFilterFactory( null );

*Geometry g = ???? // How to create this geometry ?
*
Contains containsFilter =  ff.contains("SERVICEBBOX", *g*);
//  create the encoder with the filter 1.0 configuration
 org.geotools.xml.Configuration configuration = new
org.geotools.filter.v1_0OGCConfguration ();
 org.geotools.xml.Encoder encoder = new org.geotools.xml.Encoder(
configuration );

//  create an output stream
 OutputStream xml = new
FileOutputStream("H:\\projetoFabioCasa\\filter4.xml");

//  encode
 encoder.encode( containsFilter , org.geotools.filter.v1_0.OGC.Filter, xml
);
Thank's in advance.

--
Fábio Luiz Leite Júnior
-------------------------------------------------------------------------
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-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to