[mapserver-users] shape->intesects
Jean-François MONY
jef.mony at free.fr
Thu Aug 9 13:58:17 PDT 2001
Hi,
I'm using mapscript with php as a DSO from the mapserver 3.4 on linux.
I've some questions on the intersects fonction of a shape object.
I've tried it on multi-part polygon and the result was not really fine.
After some search, I find that the total inclusion of a polygon in another was
not take in count by this function.
After a look on the mapscript.i, I thought that the problem came from :
int intersects(shapeObj *shape) {
switch(self->type) {
case(MS_SHAPE_LINE):
switch(shape->type) {
case(MS_SHAPE_LINE):
return msIntersectPolylines(self, shape);
case(MS_SHAPE_POLYGON):
return msIntersectPolylinePolygon(self, shape);
}
break;
case(MS_SHAPE_POLYGON):
switch(shape->type) {
case(MS_SHAPE_LINE):
return msIntersectPolylinePolygon(shape, self);
case(MS_SHAPE_POLYGON):
return msIntersectPolylines(self, shape); <<=======
}
break;
}
return -1;
}
But I've tried to recompil mapserver with the following modification, and
nothing change.
return msIntersectPolygons(self, shape); <<=======
Is there somebody with a comment or an idea ?
Thanks everybody
Jean-François MONY - jef.mony at free.fr
Parc naturel régional de Lorraine
Responsable informatique/SIG
tel : 03-83-84-06-37
Détaché auprès du laboratoire de phytoécologie de l'université de Metz
tel : 03-87-37-84-05
More information about the MapServer-users
mailing list