MCPcopy Create free account
hub / github.com/MapServer/MapServer / msGEOSShape2Geometry_multipoint

Function msGEOSShape2Geometry_multipoint

mapgeos.c:90–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90static GEOSGeom msGEOSShape2Geometry_multipoint(lineObj *multipoint)
91{
92 int i;
93 GEOSGeom g;
94 GEOSGeom *points;
95
96 if(!multipoint) return NULL;
97
98 points = malloc(multipoint->numpoints*sizeof(GEOSGeom));
99 if(!points) return NULL;
100
101 for(i=0; i<multipoint->numpoints; i++)
102 points[i] = msGEOSShape2Geometry_point(&(multipoint->point[i]));
103
104 g = GEOSGeom_createCollection(GEOS_MULTIPOINT, points, multipoint->numpoints);
105
106 free(points);
107
108 return g;
109}
110
111static GEOSGeom msGEOSShape2Geometry_line(lineObj *line)
112{

Callers 1

msGEOSShape2GeometryFunction · 0.85

Calls 1

Tested by

no test coverage detected