| 131 | } |
| 132 | |
| 133 | static 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 | |
| 154 | static GEOSGeom msGEOSShape2Geometry_simplepolygon(shapeObj *shape, int r, int *outerList) |
| 155 | { |
no test coverage detected