>Hi Jerry, not sure of the details here ... 

The context is that I'm reading the data from a WFS "GetFeature" request
into a feature collection, transform it somehow (assume the identity
transformation for the time being) and then attempting to write it out
again in a WFS-compatible format.

Since the data is in a namespace (assume "tiger" for the time being),
presumably the transformer is giving the error below because I haven't
set it up beforehand with the appropriate namespace-related method
calls.

I'm rather hoping that the appropriate method calls are obvious to those
with more WFS experience... ;-)

Thanks,

Jerry.

-----Original Message-----
From: Jody Garnett [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2007 20:40
To: Swan Jerry
Cc: [email protected]
Subject: Re: [Geotools-gt2-users] Running WFSClient example under Tomcat
(Swan Jerry)

Hi Jerry, not sure of the details here ... there is some example code in
the users guide - no word on if it produces valid GML though.

The reason your question is hard to answer is that there is no such
thing as "Valid GML", GML is just a starting point for defining your own
schema - the namespace parameter is used to describe your own schema.

So there are two steps:
1- define your XML schema (that extends GML)
2- use the Transformer to produce a valid document against your own
schema (the namespace refers to something you did in step one)

GeoServer has some code to produce an XML schema (you can see the
results of which in response to a DescribeFeatureType request).

As a WFS GeoServer is a little bit strange in that the "GML" document it
produces for GetFeature is validated against a call to
DescribeFeatureType.  Another way of doing things is to start with your
own schema and configure your output to match (this is the "community
schema" project you keep hearing about).

Cheers,
Jody

Swan Jerry wrote:
> Not wanting to hassle anyone, but I'd really appreciate some direction

> on the issue below ;-)
>
> Jerry.
>
> ------------------------------
>
> Message: 2
> Date: Mon, 16 Apr 2007 11:12:00 +0100
> From: "Swan Jerry" <[EMAIL PROTECTED]>
> Subject: Re: [Geotools-gt2-users] Running WFSClient example under
>       Tomcat
> To: "Andrea Aime" <[EMAIL PROTECTED]>
> Cc: [email protected]
> Message-ID:
>       
> <[EMAIL PROTECTED]>
> Content-Type: text/plain;     charset="iso-8859-1"
>
>   
>> Can you try Geotools 2.3.1? This issue should have been solved.
>>     
> The "jdbc/EPSG" entry binding issue is indeed solved - thanks.
>
> This leaves me with the namespace error, which is presumably internal 
> to
> FeatureTransformer.transform:
>   
>> ERROR:  'java.lang.RuntimeException: Could not locate namespace for 
>> FeatureType
>> : topp:tasmania_roads:http://www.openplans.org/topplook up in: 
>> FeatureTypeNamespaces[Default: null, lookUp: {}' 
>>     
>
> Assuming that I just want the simplest solution that will produce 
> valid GML output, what Methods should I be calling on my feature 
> transformer to avoid this error?
>
> And thanks again,
>
> Jerry.
>
>
> This message has been checked for viruses but the contents of an 
> attachment may still contain software viruses, which could damage your
computer system:
> you are advised to perform your own checks. Email communications with 
> the University of Nottingham may be monitored as permitted by UK
legislation.
>
>
> ----------------------------------------------------------------------
> --- This SF.net email is sponsored by DB2 Express Download DB2 Express

> C - the FREE version of DB2 express and take control of your XML. No 
> limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>   


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to