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

Function msIntersectMultipointPolygon

mapsearch.c:233–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233int msIntersectMultipointPolygon(shapeObj *multipoint, shapeObj *poly) {
234 int i,j;
235
236 /* The change to loop through all the lines has been made for ticket
237 * #2443 but is no more needed since ticket #2762. PostGIS now put all
238 * points into a single line. */
239 for(i=0; i<multipoint->numlines; i++ ) {
240 lineObj points = multipoint->line[i];
241 for(j=0; j<points.numpoints; j++) {
242 if(msIntersectPointPolygon(&(points.point[j]), poly) == MS_TRUE)
243 return(MS_TRUE);
244 }
245 }
246
247 return(MS_FALSE);
248}
249
250int msIntersectPolylines(shapeObj *line1, shapeObj *line2) {
251 int c1,v1,c2,v2;

Callers 3

msQueryByRectFunction · 0.85
msQueryByFeaturesFunction · 0.85
msQueryByShapeFunction · 0.85

Calls 1

msIntersectPointPolygonFunction · 0.85

Tested by

no test coverage detected