GML MultiLineString - missing space
Steve Lime
steve.lime at DNR.STATE.MN.US
Wed Jul 6 18:22:27 PDT 2005
Thanks will add to 4.7 and 4.6 source trees shortly...
Steve
>>> François Prunayre <fx.prunayre at OIEAU.FR> 07/06/05 5:31 AM >>>
Hi list, I have no space between coordinates in gml:MultiLineString
geometry.
Like ...
<gml:MultiLineString srsName="EPSG:4326">
<gml:LineString>
<gml:coordinates>
1.573795,48.756269-1.573767,48.756279-1.573621,48.756415-1.573190,48.757014-
1.572663,48.758156-1.572388,48.759020-1.572269,48.760149-1.571406,48.763876-
1.571331,48.764688-1.571195,48.765413-1.570923,48.767222-1.570576,48.768943-
1.570443,48.768992-1.570467,48.769126-1.570198,48.771880-1.570333,48.775304-
1.570319,48.776924-1.570258,48.777736-1.570149,48.778100-1.570132,48.778775-
1.569944,48.779906
</gml:coordinates>
</gml:LineString>
It should be ...
<gml:MultiLineString srsName="EPSG:4326">
<gml:LineString>
<gml:coordinates>
-1.573795,48.756269 -1.573767,48.756279 -1.573621,48.756415
-1.573190,48.757014 -1.572663,48.758156 -1.572388,48.759020
-1.572269,48.760149 -1.571406,48.763876 -1.571331,48.764688
-1.571195,48.765413 -1.570923,48.767222 -1.570576,48.768943
-1.570443,48.768992 -1.570467,48.769126 -1.570198,48.771880
-1.570333,48.775304 -1.570319,48.776924 -1.570258,48.777736
-1.570149,48.778100 -1.570132,48.778775 -1.569944,48.779906
</gml:coordinates>
</gml:LineString>
In 4.6.0, file mapgml.c, line 310 : "%f,%f" should be replace by "%f,%f "
msIO_fprintf(stream, "%s <gml:coordinates>", tab);
for(i=0; i<shape->line[j].numpoints; i++)
msIO_fprintf(stream, "%f,%f ", shape->line[j].point[i].x,
shape->line[j].point[i].y);
msIO_fprintf(stream, "</gml:coordinates>\n");
Works for me.
Francois
--
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.
Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.
Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized.
More information about the MapServer-users
mailing list