Opened 18 years ago

Last modified 18 years ago

#1520 new defect

WFS MultiLineString Coord Format

Reported by: asimpson@… Owned by: mapserverbugs
Priority: high Milestone:
Component: WFS Server Version: 4.6
Severity: normal Keywords:
Cc:

Description

mapgml.c, gmlWriteGeometry_GML2, case(MS_SHAPE_LINE), MultiLineString

msIO_fprintf(stream, "%f,%f", shape->line[j].point[i].x, shape->line[j].point
[i].y);

I think "%f,%f" should be "%f,%f "

Change History (1)

comment:1 by asimpson@…, 18 years ago

Also each LineString should be wrapped in a lineStringMember

msIO_fprintf(stream, "%s  <gml:lineStringMember>\n", tab); 
msIO_fprintf(stream, "%s  <gml:LineString>\n", tab); /* no srsname at this 
point */

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");
msIO_fprintf(stream, "%s  </gml:LineString>\n", tab);
msIO_fprintf(stream, "%s  </gml:lineStringMember>\n", tab); 
Note: See TracTickets for help on using tickets.