I am trying to say that FME may have a configuration option asking you
where you have stored the schema files?
I hope if you look at the XML and XSD files output by GeoTools that they
refer to the OGC schema being used (either GML2 or GML3?). An XML parser is
expected to resolve these references (downloading the formal schema
definition if required) and use the resulting schema (i.e. a combination of
GML and your own XSD file) when parsing the content.
If the output is incorrect you may wish to look at using some of the
options on this page:
http://docs.geotools.org/latest/userguide/library/xml/geometry.html
You will find that feature collection is slight different from GML and for
WFS. The encoders let you choose which one you are using...
As for how XSD files work - I am not sure where to start!
GeoTools includes a copy of the GML XSD files, so when we see a reference
to OGC schemas we make use of our own copy (rather than download one each
time).
Here are some examples of OGC and W3C standard support in GeoTools:
- https://github.com/geotools/geotools/tree/master/modules/ogc
- https://github.com/geotools/geotools/tree/master/modules/extension/xsd
And for example the XSD files used for GML2:
-
https://github.com/geotools/geotools/tree/master/modules/extension/xsd/xsd-gml2/src/main/resources/org/geotools/gml2
I do not know how you have configured FME? When using a XML tool like XML
Spy you get configuration options for approving schema download locations,
where to store the files on disk and son on.
Why the complexity? Because XML files should be readable even when a
program does not have access to the internet (say in a secure environment
downloading an XSD definition may be considered an attack vector as it
could be modified to allow CDATA sections in containing executable code...).
So yeah talk to your vendor, if the issue is with our output please raise a
bug report.
--
Jody
Jody Garnett
On Wed, Jul 23, 2014 at 2:09 PM, markkrawitz <mark.kraw...@web.de> wrote:
> Please excuse me, but I don't understand the answer. The outer GML is alwas
> part of the importing tool? Can geotools deal with these files, because the
> other tools can't.
> Can you explain why popular (an very epensive) Tools like FME can't read
> these files?They usually provide most im-/export for most filetypes. By the
> way, i have tried gml gm2,gml3 as well as WFS 1.0 and WFS 1.1 as the
> Version, but nothing changed.
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Problems-with-XSD-Files-for-GML-tp5152871p5152898.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users