| 88 | } |
| 89 | |
| 90 | static 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 | |
| 111 | static GEOSGeom msGEOSShape2Geometry_line(lineObj *line) |
| 112 | { |
no test coverage detected