Hi all,
I am writing a simple application to parse some geometries from GeoJSON to
GML and viceversa.

I am able to accomplish my goal, but I cannot write neither in GML or
GeoJSON the srsName.

For example the actual result is
<?xml version="1.0" encoding="UTF-8"?><gml:Polygon xmlns:gml="
http://www.opengis.net/gml"; xmlns:sch="http://www.ascc.net/xml/schematron";
xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xlink="
http://www.w3.org/1999/xlink";
srsDimension="2"><gml:exterior><gml:LinearRing
srsDimension="2"><gml:posList>12.2678 45.5224 12.2678 45.5224 12.2678
45.5224 12.2677 45.5224 12.2678 45.5224 12.2677 45.5224 12.2677 45.5224
12.2677 45.5224 12.2677 45.5224 12.2677 45.5224 12.2678 45.5224 12.2678
45.5224 12.2678
45.5224</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon>

but the expected is

<?xml version="1.0" encoding="UTF-8"?><gml:Polygon xmlns:gml="
http://www.opengis.net/gml"; xmlns:sch="http://www.ascc.net/xml/schematron";
xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xlink="
http://www.w3.org/1999/xlink"; srsDimension="2" srsName="EPSG:4326"
><gml:exterior><gml:LinearRing
srsDimension="2"><gml:posList>12.2678 45.5224 12.2678 45.5224 12.2678
45.5224 12.2677 45.5224 12.2678 45.5224 12.2677 45.5224 12.2677 45.5224
12.2677 45.5224 12.2677 45.5224 12.2677 45.5224 12.2678 45.5224 12.2678
45.5224 12.2678
45.5224</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon>

There is a way to do this kind of stuff?

Thanks,
Matteo Cusmai
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to