Coordinate System API: IsValid

"; $factory = new MgCoordinateSystemFactory(); $wkt = $_GET['WKT']; $result = $factory->IsValid($wkt); if($result == true) { $status = "Pass"; } else { $status = "Fail"; } } catch ( MgException $e ) { $errorMsg = $e->GetExceptionMessage(); $status = "Fail"; } catch ( Exception $e ) { $errorMsg = $e->getMessage(); $status = "Fail"; } echo "OGC WKT:
"; echo "$wkt

"; echo "Status:
"; echo "$status

"; if($errorMsg != "") { echo "Error:
"; echo $errorMsg; } ?>