Here is a page on how to write out GML ....
- http://docs.codehaus.org/display/GEOTDOC/03+XML+Transform

Please note that there is not really any such thing as a "GML" format - 
GML is a XML Schema that you can use when making up your own format ... 
I recommend downloading GeoServer and comparing the demo requests for 
"DescribeFeatureType" (produces an XML Schema that extends GML) and 
"getFeatures" (produces an XML document that uses the describe feature 
type document).

You can use GeoServer to produce these things for a shapefile ... and 
have a look at what needs to be done yourself.

Cheers,
Jody
> Hi list,
>
> I'm using geotools2.3 and working on a WPS wich convert a shape-File 
> to a GML. I write a GML but only with geometris, but I want to 
> also write the attributes of the SHP. How could do it?
>  
> Thanks,
> BOLO
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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 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