Re: [Geotools-devel] GML Parsing -- Ignoring the application schema

2007-02-26 Thread Michael Lutz
Hi Justin, thanks for your help on this. However, it was not quite what I wanted to achieve. Actually, I had already managed to get it to work *not* ignoring the schema. And this worked well enough, if just a little slow. So actually what I was trying to do is not use the schema and see whethe

Re: [Geotools-devel] GML Parsing -- Ignoring the application schema

2007-02-25 Thread Justin Deoliveira
Hi Michael, I took a look at this and was able to successfully stream parse the feature collection. Here is the code: GMLConfiguration configuration = new GMLConfiguration(); configuration.getProperties().add(Parser.Properties.PARSE_UNKNOWN_ELEMENTS); InputStream xml = new URL("http://pisa007..

Re: [Geotools-devel] GML Parsing -- Ignoring the application schema

2007-02-23 Thread Michael Lutz
Hi Justin, Andrea, here's my code. The WFS (GeoServer) request included should work as an example. public static void main(String[] args) { try { InputStream in = new URL("http://pisa007.pisa.intecs.it/geoserver/wfs?request=GetFeature&service=WFS&version=1.0.0&typeName=topp:Portugal_Cr

Re: [Geotools-devel] GML Parsing -- Ignoring the application schema

2007-02-23 Thread Justin Deoliveira
> Michal, I think we would be able to solve this faster if you could > give us a small GML document and a main with the code you're using > to parse it. Add a bit of patience too, since Justin lives in Canada, west > coast, > so he's quite out of synch with our timezone. Well I believe it is a b

Re: [Geotools-devel] GML Parsing -- Ignoring the application schema

2007-02-23 Thread Justin Deoliveira
By telling the parser to ignore the schema location you are essentially telling it to ignore your application schema types, so that when it comes to actually parsing a feature, it really knows nothing about your type of feature. The upside is that the parser can be used for any application schema.

Re: [Geotools-devel] GML Parsing -- Ignoring the application schema

2007-02-23 Thread aaime
Michael Lutz ha scritto: > I'm a bit at a loss here. Why does the Configuration matter if the > schema is to be ignored anyway? I have been using the WFSConfiguration, > but it also does not work with GMLConfiguration. I have not set up an > ApplicationSchema configuration as I thought the whole

Re: [Geotools-devel] GML Parsing -- Ignoring the application schema

2007-02-23 Thread Michael Lutz
I'm a bit at a loss here. Why does the Configuration matter if the schema is to be ignored anyway? I have been using the WFSConfiguration, but it also does not work with GMLConfiguration. I have not set up an ApplicationSchema configuration as I thought the whole point of the exercise was that

Re: [Geotools-devel] GML Parsing -- Ignoring the application schema

2007-02-22 Thread Justin Deoliveira
Hmmm... looks like the parser isn't managing to parse your application feature type correctly into a geotools feature type. Which method of stream pasring are you using? Are you passing in your wfs configuration, or an ApplicationSchema configuration? Michael Lutz wrote: > Ok, now I'm getting this

Re: [Geotools-devel] GML Parsing -- Ignoring the application schema

2007-02-22 Thread Michael Lutz
Ok, now I'm getting this exception: java.lang.RuntimeException: Parsing failed for ff_portugal_2002_4326: org.geotools.feature.IllegalAttributeException: No attribute named fireID at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:96) at org.geotools.xml.impl.Binding

Re: [Geotools-devel] GML Parsing -- Ignoring the application schema

2007-02-22 Thread Justin Deoliveira
Michael Lutz wrote: > Thanks. The StreamingParser works considerably better (if a little > slower). Note that the xPath expression must be "//featureMember" > (without the prefix). Right.. :) JXPath seems to not like the prefixes..., probably how the context is being setup. Yeah the streaming pa