GetCount(); if ($propCount == 0) { echo "No properties
"; return; } for($i=0;$i<$propCount;$i++) { $property = $propertyCollection->GetItem($i); $propertyType = $property->GetPropertyType(); $propertyName = $property->GetName(); $val = $property->GetValue(); echo "$propertyName: $val
"; } } ?> Coordinate System API: EnumerateCoordinateSystems

"; $factory = new MgCoordinateSystemFactory(); // Get the list of coordinate systems for the specified category $category = $_GET['CATEGORY']; $systems = $factory->EnumerateCoordinateSystems($category); $count = $systems->GetCount(); echo "Category: $category
"; echo "Coordinate Systems: $count

"; for($i=1;$i<=$count;$i++) { $system = $systems->GetItem($i-1); echo "Coordinate System $i
"; printPropertyCollection($system); echo "
"; } echo "
"; $status = "Pass"; } catch ( MgException $e ) { $errorMsg = $e->GetExceptionMessage(); $status = "Fail"; } catch ( Exception $e ) { $errorMsg = $e->getMessage(); $status = "Fail"; } echo "Status:
"; echo "$status

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