Class GmlHelper
Helper for GML creation
Inherited Members
Namespace: FpAssistantCore.Geographical
Assembly: FpAssistantCoreScl.dll
Syntax
public class GmlHelper
Constructors
View SourceGmlHelper()
Declaration
public GmlHelper()
Methods
View SourceAddFeatureMemberGeoMapElement(string, GeoMapElement, GmlDimension)
Add a GeoMapElement as a feature
Declaration
public void AddFeatureMemberGeoMapElement(string featureName, GeoMapElement geoMapElement, GmlDimension gmlDimension)
Parameters
| Type | Name | Description |
|---|---|---|
| string | featureName | Name of GML feature to add |
| GeoMapElement | geoMapElement | GeoMapElement to add to the GML |
| GmlDimension | gmlDimension | 2D or 3D data of the GeoMapElement into the GML |
AddFeatureMemberGeoMapElements(string, GeoMapElementCollection, GmlDimension)
Add a GeoMapElementCollection as a feature
Declaration
public void AddFeatureMemberGeoMapElements(string featureName, GeoMapElementCollection geoMapElementCollection, GmlDimension gmlDimension)
Parameters
| Type | Name | Description |
|---|---|---|
| string | featureName | Name of GML feature to add |
| GeoMapElementCollection | geoMapElementCollection | GeoMapElementCollection to add to the GML |
| GmlDimension | gmlDimension | 2D or 3D data of the GeoMapElement into the GML |
CompleteXml()
Declaration
public void CompleteXml()
CreateGml(string, string, GeoMapElementCollection)
Static member to create GML in a single call passing a collection of geoMapElements
Declaration
public static bool CreateGml(string filename, string featureName, GeoMapElementCollection geoMapElementCollection)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | Filename along with path to save the GML file into |
| string | featureName | Feature name of the GML |
| GeoMapElementCollection | geoMapElementCollection | GeoMapElementCollection to add to the GML |
Returns
| Type | Description |
|---|---|
| bool |
GetXml()
Declaration
public string GetXml()
Returns
| Type | Description |
|---|---|
| string |
Save(string)
Save GML to an external file
Declaration
public void Save(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | Filename along with path to save the GML file into |