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

Function msIntersectPolylines

mapsearch.c:250–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250int msIntersectPolylines(shapeObj *line1, shapeObj *line2) {
251 int c1,v1,c2,v2;
252
253 for(c1=0; c1<line1->numlines; c1++)
254 for(v1=1; v1<line1->line[c1].numpoints; v1++)
255 for(c2=0; c2<line2->numlines; c2++)
256 for(v2=1; v2<line2->line[c2].numpoints; v2++)
257 if(msIntersectSegments(&(line1->line[c1].point[v1-1]), &(line1->line[c1].point[v1]),
258 &(line2->line[c2].point[v2-1]), &(line2->line[c2].point[v2])) == MS_TRUE)
259 return(MS_TRUE);
260
261 return(MS_FALSE);
262}
263
264int msIntersectPolylinePolygon(shapeObj *line, shapeObj *poly) {
265 int i;

Callers 6

msQueryByFeaturesFunction · 0.85
msQueryByShapeFunction · 0.85
msIntersectPolygonsFunction · 0.85
msGEOSIntersectsFunction · 0.85
shapeObj_intersectsFunction · 0.85

Calls 1

msIntersectSegmentsFunction · 0.85

Tested by

no test coverage detected