[geotk] jts -> geotk
Milo van der Linden
milo at dogodigi.net
Mon Feb 15 04:07:54 EST 2010
Thank you Johann!
jts-1.10 introduced GMLWriter and GMLReader in conjunction to WKT and
WKB read/writers. I assume it has not reached the geotoolkit jar yet.
I will try the JAXP solution because I prefer to use standard XML
parsers where possible for better integration.
Kind regards,
Milo van der Linden
sorel wrote:
> Hello,
>
> I am not sure if you are searching for GML (which is xml) or WKT
> (POINT(...)).
>
> 1. To obtain WKT or WKB :
> All the classes needed are in the JTS library : WKTReader, WKTWriter,
> WKBReader, WKBWriter.*
> *here is an exemple :
> WKTWriter writer = new WKTWriter();
> String wkt = writer.write(myGeometry);
>
> 2. To obtain GML :
> JAXPStreamFeatureWriter writer = new JAXPStreamFeatureWriter();
> String gml = write(feature);
>
> I hope this helps
>
>
> johann
>
>
>
> Milo van der Linden wrote:
>> Another, probably simple question.
>>
>> I currently have a jts based project where I write a point to a gml
>> string. I want to get rid of jts and do it with geotoolkit only.
>>
>> Is there something as simple as a gmlwriter to write a geometry to a
>> gmlstring?
>>
>>
>> _______________________________________________
>> Geotoolkit mailing list
>> Geotoolkit at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geotoolkit
>>
>>
>
>
More information about the Geotoolkit
mailing list