#9 problem with setSrsName in GMLWriter

open
nobody
None
5
2013-05-02
2013-05-02
ylka
No

I have encountered a problem with the setSrsName method. I am using this to be able to pass the gml to the PostGIS function "ST_GeomFromGML".
The problem is that the srsName is written out like this: <gml:Polygon srsName='EPSG:4326'> but PostGIS accepts it only with the quotation marks like this : <gml:Polygon srsName="EPSG:4326">
Is there some purpose behing using this symbol: ' ?
If not, could you please change this row in the source code:
writer.write(" " + GMLConstants.GML_ATTR_SRSNAME + "='" + srsName + "'");
to this
writer.write(" " + GMLConstants.GML_ATTR_SRSNAME + "=\"" + srsName + "\""); ?
thank you very much

Discussion