Dear all, 

 

I am trying to create Encoder using the attached application schema:

         

   // create configuration

         org.geotools.gml3.GMLConfiguration   configuration = new 
org.geotools.gml3.GMLConfiguration();

         // create ApplicationSchema XSD

            ApplicationSchemaXSD appSchema = new 
ApplicationSchemaXSD(namespace, schemaLocation);

         // create Qname used by encoder

            QName qName = new QName(appSchema.getNamespaceURI(),

                        gmlElement.FeatureCollection.name());

          // create encoder

            Encoder encoder = new Encoder(configuration, appSchema

                        .getSchema()); 

 

  But I'm getting NullPointerException in the last code line, because 
appSchema.getSchema is null.

  I have checked as well the namespace as  the schemaLocation, both are correct.

  As you can see in the attached schema, it uses relative paths in the schema 
import definitions.

  Can it cause the schema loading problems?

  

 Many thanks for your help!

 

 

Anna Pitaev
_________________________________________
Logica - Releasing your potential

Logica Deutschland GmbH & Co. KG
Rheinstrasse 95
64295 Darmstadt
Germany
Tel.: +49 6151 36860-121
E-Mail:  [email protected]
www.logica.com

Logica Deutschland GmbH & Co. KG
Zettachring 4, 70567 Stuttgart; Amtsgericht Stuttgart HRA 722072
Persönlich haftender Gesellschafter: Logica Verwaltungs GmbH

Geschäftsführer: Torsten Straß (Vors.) / Dr. Thomas Elsner / Eric Guyot / 
Andreas Manganaro / Olaf Scholz / Oliver Starzonek; Handelsregister  AG 
Stuttgart  HRB 724084

 



Please help Logica to respect the environment by not printing this email  / 
Pour contribuer comme Logica au respect de l'environnement, merci de ne pas 
imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie 
so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a 
respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

Attachment: Hydrography.rar
Description: Hydrography.rar

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to