|
From: <Mi...@ge...> - 2008-04-18 10:56:51
|
Hello,
maybe someone can help me with my problem.
I want to encode an ID filter into xml and it does not work.
When calling encode with an ID filter i get a RunntimeException: Failed to
get Property : fid
-------------expample------------
//function to create the id filter
public static Filter getIdFilter(String fid) throws Exception{
HashSet setID=new HashSet();
setID.add(filterFactory.featureId(fid));
return filterFactory.id(setID);
}
//Function to encode the id filter
public String encode(Filter filter) throws Exception{
Encoder encoder = new Encoder( new
org.geotools.filter.v1_0.OGCConfiguration() );
OutputStream xml = new StringOutputStream();
encoder.encode( filter, org.geotools.filter.v1_0.OGC.Filter,
xml );
strFilter=xml.toString();
return strFilter
}
-----------------------------------
--
View this message in context: http://www.nabble.com/Error-encoding-ID-Filter-to-XML-tp16763362p16763362.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
|