Example #1
0
 static function CreateMarkupClass($geomType)
 {
     $markupClass = new MgClassDefinition();
     $markupClass->SetName('Markup');
     $properties = $markupClass->GetProperties();
     $idProperty = MarkupSchemaFactory::CreateIDProperty();
     $properties->Add($idProperty);
     $properties->Add(MarkupSchemaFactory::CreateTextProperty(255));
     $properties->Add(MarkupSchemaFactory::CreateGeometryProperty($geomType));
     $markupClass->GetIdentityProperties()->Add($idProperty);
     $markupClass->SetDefaultGeometryPropertyName('Geometry');
     return $markupClass;
 }