<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>I'm doing a fairly simple geo-processing script in PHP but I'm running into some trouble.&nbsp; I have two polygon layers and I'm trying to look up all polygons from layer A that are not disjoint from layer B.&nbsp; I'm also looking at specific area so if the polygon from layer B is bigger than my map extent I'm trying to clip (using shapeobj::intersection) to the map extent.&nbsp;&nbsp; On occasion I'm getting GEOS errors that show up in my PHP error log and kill my script. The errors are from bad shapes (things like a rectangle built wrong so that it looks more like an hour glass). Is there a function to verify the shape?&nbsp; I don't see one in the PHP documentation. Can I catch these errors somehow?&nbsp; <br><br>Thanks in advance, <br><br>Josh<br></div></div></body></html>