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

Function msGEOSShape2Geometry_multiline

mapgeos.c:133–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static GEOSGeom msGEOSShape2Geometry_multiline(shapeObj *multiline)
134{
135 int i;
136 GEOSGeom g;
137 GEOSGeom *lines;
138
139 if(!multiline) return NULL;
140
141 lines = malloc(multiline->numlines*sizeof(GEOSGeom));
142 if(!lines) return NULL;
143
144 for(i=0; i<multiline->numlines; i++)
145 lines[i] = msGEOSShape2Geometry_line(&(multiline->line[i]));
146
147 g = GEOSGeom_createCollection(GEOS_MULTILINESTRING, lines, multiline->numlines);
148
149 free(lines);
150
151 return g;
152}
153
154static GEOSGeom msGEOSShape2Geometry_simplepolygon(shapeObj *shape, int r, int *outerList)
155{

Callers 1

msGEOSShape2GeometryFunction · 0.85

Calls 1

Tested by

no test coverage detected