DelegateGetWkt
Namespace: Digi21.DigiNG.IO
Assembly: Digi21.DigiNG
Parameterless function returning the WKT (Well-Known Text, the text defining a coordinate reference system) assigned to a drawing file when it has no coordinate reference system.
public delegate string DelegateGetWkt();
Drawing file constructors receive this delegate in the GetWkt parameter and call it only if the file has no coordinate reference system. Each format determines when:
| Class | When it calls the delegate |
|---|---|
| Bin | If the .prj file does not exist. |
| BinDouble | If the .bind file does not exist. |
| Shp | If the folder has no layers. |
| Geomedia | Geomedia does not call DelegateGetWkt: the coordinate reference system is obtained from the file. |
A lambda expression returning a string converts to this delegate, for example () => entrada.Wkt.
Example
The IReadOnlyDrawingFile example creates a .bin file with another file's coordinate reference system using a DelegateGetWkt.