Re: [JPP-Devel] Questions about GML 2

2008-09-19 Thread Rushforth, Peter
: [JPP-Devel] Questions about GML 2 Martin wrote: As for auto-determining input data types, there's two reasons we choose to provide a template containing this and other information - if the input file is empty you still need to know the datatype in order to create a layer - the template made

[JPP-Devel] Questions about GML 2

2008-09-18 Thread Sunburned Surveyor
I'm doing some work converting GPX files into waypoint observations stored in GML 2. I want to be able to read the GML 2 files into OpenJUMP. I had a couple of questions that I thought you guys could help with: [1] I'm trying to figure out what the header of a GML 2 file should look like. I'll be

Re: [JPP-Devel] Questions about GML 2

2008-09-18 Thread Paul Austin
Ideally GML documents should include a schema definition using xsi:schemaLocation but they rarely do. If they did you could use the XML parser to find that location and then parse the schema (not an easy task) and then map it automatically to a FeatureSchema. Again not an easy task as GML is

Re: [JPP-Devel] Questions about GML 2

2008-09-18 Thread Martin Davis
I second Paul's idea about looking at the spec for examples. You need more gunk than is in your example - welcome to the wonderful world of XML... As for auto-determining input data types, there's two reasons we choose to provide a template containing this and other information - if the input

Re: [JPP-Devel] Questions about GML 2

2008-09-18 Thread Sunburned Surveyor
Paul wrote: Ideally GML documents should include a schema definition using xsi:schemaLocation but they rarely do. If they did you could use the XML parser to find that location and then parse the schema (not an easy task) and then map it automatically to a FeatureSchema. Again not an easy task as

Re: [JPP-Devel] Questions about GML 2

2008-09-18 Thread Sunburned Surveyor
Martin wrote: As for auto-determining input data types, there's two reasons we choose to provide a template containing this and other information - if the input file is empty you still need to know the datatype in order to create a layer - the template made it easier to specify exactly which