cool,
keep asking questions as needed with no hesitation.

regards,

Gabriel
On Friday 23 March 2007 13:09, Fabio Luiz Leite wrote:
> Thanks, Gabriel and Justin. I have updated my .jar files for stable release
> and it has worked fine.
>
> On 3/22/07, Fabio Luiz Leite <[EMAIL PROTECTED]> wrote:
> > =)
> > Ok, Justin and Gabriel. My snapshot version is out of date. I will try
> > with a most recent version.
> >
> > On 3/22/07, Justin Deoliveira < [EMAIL PROTECTED]> wrote:
> > > You are right on the money Gabriel. Fabio if you grab the latest
> > > snapshot of trunk from lists.refractions.net/m2 everything should work
> > > as desired.
> > >
> > > -Justin
> > >
> > > Gabriel Roldán wrote:
> > > > Hi Favio,
> > > >
> > > > I'm far from being an expert on the new xml stuff, but here is my
> > >
> > > guess:
> > > > I assume you're working with geotools trunk. It seems to be you're
> > >
> > > running an
> > >
> > > > out of date version of it, since it _seems_ the binding for gml:Point
> > >
> > > is
> > >
> > > > incomplete in the sense that it has no encode() implemented...
> > > > anyhow, I'm cc'ing Justing who would be able of giving a more
> > > > accurate
> > >
> > > guess
> > >
> > > > for sure.
> > > >
> > > > regards,
> > > >
> > > > Gabriel
> > > >
> > > > On Thursday 22 March 2007 12:21, Fabio Luiz Leite wrote:
> > > >> Hi Gabriel and all,
> > > >>
> > > >> Thank you for help me. But now, I get another problem. When I trying
> > >
> > > to
> > >
> > > >> generate the filter with this code, I get an incomplete geometry
> > >
> > > filter
> > >
> > > >> encoding. Follows the source code:
> > > >>
> > > >>  FilterFactory2 ff =
> > >
> > > (FilterFactory2)CommonFactoryFinder.getFilterFactory(
> > >
> > > >> null );
> > > >>  PropertyName propertyName = ff.property( "testString" );
> > > >>  Literal literal = ff.literal( 2 );
> > > >>  PropertyIsEqualTo filter = ff.equals( propertyName, literal );
> > > >>
> > > >> GeometryFactory gf = new GeometryFactory();
> > > >> Coordinate c = new Coordinate(-38.0, -7.0);
> > > >> Point p = gf.createPoint(c);
> > > >>
> > > >> Filter f = ff.contains(ff.property("SERVICEBBOX"), ff.literal(p));
> > > >> Or orFilter = ff.or(filter, f);
> > > >> //        create the encoder with the filter 1.0 configuration
> > > >> org.geotools.xml.Configuration configuration = new
> > > >> org.geotools.filter.v1_0.OGCConfiguration();
> > > >> org.geotools.xml.Encoder encoder = new org.geotools.xml.Encoder(
> > > >> configuration );
> > > >>
> > > >> //        create an output stream
> > > >> OutputStream xml = new
> > >
> > > FileOutputStream("C:\\eclipse\\workspace\\WebServiceDescriptionTool2\\s
> > >rc\\
> > >
> > > >> test\\geoTest4.xml"); //        encode
> > > >> encoder.encode( orFilter, org.geotools.filter.v1_0.OGC.Filter, xml
> > > >> );
> > > >>
> > > >>
> > > >>
> > > >> Follows the filter encoding generated:
> > > >>
> > > >> <ogc:Or>
> > > >>         <ogc:PropertyIsEqualTo>
> > > >>             <ogc:PropertyName>testString</ogc:PropertyName>
> > > >>             <ogc:Literal>2</ogc:Literal>
> > > >>         </ogc:PropertyIsEqualTo>
> > > >>         <ogc:comparisonOps />
> > > >>         <ogc:Contains>
> > > >>             <ogc:PropertyName>SERVICEBBOX</ogc:PropertyName>
> > > >>             <gml:Point/> Incomplete Geometry inconding - where are
> > >
> > > the
> > >
> > > >> coordenates ?
> > > >>         </ogc:Contains>
> > > >>     </ogc:Or>
> > > >>
> > > >>
> > > >>
> > > >> I think that I am forget anything else to do in the code or anything
> > >
> > > that I
> > >
> > > >> don't know. Anyone knows what's happening ? Thanks in advance.
> > > >
> > > > !DSPAM:4007,46027ced77061527717022!
> > >
> > > --
> > > Justin Deoliveira
> > > The Open Planning Project
> > > http://topp.openplans.org
> >
> > --
> > 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