TTransform: Razlika med redakcijama
m (→Execute) |
|||
| Vrstica 38: | Vrstica 38: | ||
==Execute== | ==Execute== | ||
| − | Metoda '''Execute''' izvede transformacijo podatkov iz vhodne v izhodno podatkovno plast. | + | Metoda '''Execute''' izvede transformacijo podatkov iz vhodne v izhodno podatkovno plast. Metoda vrne ''true/false'' glede na to, ali se je transformacija uspešno izvedla. |
<declaration> | <declaration> | ||
Method|TTransform.Execute | Method|TTransform.Execute | ||
| − | Result|Optional Boolean| | + | Result|Optional Boolean|. |
</declaration> | </declaration> | ||
==InputLayer== | ==InputLayer== | ||
| − | + | Lastnost '''InputLayer''' nastavimo vhodno podatkovno plast transformacije. Kadar se nastavi | |
| − | + | [[TTransform#InputRecordList|InputRecordList]], je ni potrebno nastavljati, ker se upošteva kar podatkovna plast iz liste zapisov. | |
| + | <declaration> | ||
| + | Property|TTransform.InputLayer | ||
| + | Result|TLayer|. | ||
| + | </declaration> | ||
| + | <source></source> | ||
==InputRecordList== | ==InputRecordList== | ||
| − | + | Lastnost '''InputRecordList''' nastavimo vhodno listo zapisov transformacije. Če se ne nastavi oz. je nastavljena na ''nil'', se privzame lista vseh zapisov. Če se nastavi, ni potrebno dodatno nastavljati [[TTransform#InputLayer|InputLayer]], saj se plast prevzame iz liste zapisov. | |
| − | + | <declaration> | |
| − | + | Property|TTransform.InputRecordList | |
| − | + | Result|TRecordList|. | |
| − | + | </declaration> | |
| − | + | <source></source> | |
| − | |||
| − | |||
| − | |||
==TransformType== | ==TransformType== | ||
| − | + | Property'''TransformType''' . | |
0 - Linearna transformacija | 0 - Linearna transformacija | ||
1 - Po kvadratu oddaljenosti | 1 - Po kvadratu oddaljenosti | ||
2 - Kvadrat oddaljenosti (Veliko transformacijskih točk) | 2 - Kvadrat oddaljenosti (Veliko transformacijskih točk) | ||
3 - Med koordinatnimi sistemi | 3 - Med koordinatnimi sistemi | ||
| − | + | <declaration> | |
| − | + | Property|TTransform.TransformType | |
| − | + | Result|Long|. | |
| − | + | </declaration> | |
| + | <source></source> | ||
==TransformCoorType== | ==TransformCoorType== | ||
| + | Property'''TransformCoorType''' . | ||
0 - Centroid + Nova lokacija | 0 - Centroid + Nova lokacija | ||
1 - Centroid + Stara lokacija | 1 - Centroid + Stara lokacija | ||
2 - Linija (stare proti novi lokaciji) | 2 - Linija (stare proti novi lokaciji) | ||
| − | + | <declaration> | |
| + | Property|TTransform.TransformCoorType | ||
| + | Result|Long|. | ||
| + | </declaration> | ||
| + | <source></source> | ||
| − | == | + | ==OutputLayer== |
| − | + | Lastnost '''OutputLayer''' nastavlja izhodno plast transformacije. Če se ne nastavi, se avtomatsko naredi nova plast in je po [[TTransform#Execute|Execute]] ukazu shranjena referenca na novo plast. Če pa je nastavljena, se podatki in struktura obstoječe plasti briše in ponovno nastavi iz vhodne plasti za transformacijo. | |
| − | = | + | <declaration> |
| + | Property|TTransform.OutputLayer | ||
| + | Result|TLayer|. | ||
| + | </declaration> | ||
| + | <source>Transform.OutputLayer = [Ime Plasti]</source> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| Vrstica 103: | Vrstica 111: | ||
==Area== | ==Area== | ||
| − | . | + | Property'''Area''' . |
<declaration> | <declaration> | ||
| − | Property|Area | + | Property|TTransform.Area |
Result|TPointArray|. | Result|TPointArray|. | ||
</declaration> | </declaration> | ||
| Vrstica 111: | Vrstica 119: | ||
==Edit== | ==Edit== | ||
| − | . | + | Method'''Edit''' . |
<declaration> | <declaration> | ||
| − | Method|Edit | + | Method|TTransform.Edit |
Result|Optional Boolean|. | Result|Optional Boolean|. | ||
</declaration> | </declaration> | ||
| Vrstica 119: | Vrstica 127: | ||
==Execute== | ==Execute== | ||
| − | . | + | Method'''Execute''' . |
<declaration> | <declaration> | ||
| − | Method|Execute | + | Method|TTransform.Execute |
Result|Optional Boolean|. | Result|Optional Boolean|. | ||
</declaration> | </declaration> | ||
| Vrstica 127: | Vrstica 135: | ||
==InputLayer== | ==InputLayer== | ||
| − | . | + | Property'''InputLayer''' . |
<declaration> | <declaration> | ||
| − | Property|InputLayer | + | Property|TTransform.InputLayer |
Result|TLayer|. | Result|TLayer|. | ||
</declaration> | </declaration> | ||
| Vrstica 135: | Vrstica 143: | ||
==InputRecordList== | ==InputRecordList== | ||
| − | . | + | Property'''InputRecordList''' . |
<declaration> | <declaration> | ||
| − | Property|InputRecordList | + | Property|TTransform.InputRecordList |
Result|TRecordList|. | Result|TRecordList|. | ||
</declaration> | </declaration> | ||
| Vrstica 143: | Vrstica 151: | ||
==OutputLayer== | ==OutputLayer== | ||
| − | . | + | Property'''OutputLayer''' . |
<declaration> | <declaration> | ||
| − | Property|OutputLayer | + | Property|TTransform.OutputLayer |
Result|TLayer|. | Result|TLayer|. | ||
</declaration> | </declaration> | ||
| Vrstica 151: | Vrstica 159: | ||
==TransformBasePointAngle== | ==TransformBasePointAngle== | ||
| − | . | + | Property'''TransformBasePointAngle''' . |
<declaration> | <declaration> | ||
| − | Property|TransformBasePointAngle | + | Property|TTransform.TransformBasePointAngle |
Result|Float|. | Result|Float|. | ||
</declaration> | </declaration> | ||
| Vrstica 159: | Vrstica 167: | ||
==TransformBasePointDeltaX== | ==TransformBasePointDeltaX== | ||
| − | . | + | Property'''TransformBasePointDeltaX''' . |
<declaration> | <declaration> | ||
| − | Property|TransformBasePointDeltaX | + | Property|TTransform.TransformBasePointDeltaX |
Result|Float|. | Result|Float|. | ||
</declaration> | </declaration> | ||
| Vrstica 167: | Vrstica 175: | ||
==TransformBasePointDeltaY== | ==TransformBasePointDeltaY== | ||
| − | . | + | Property'''TransformBasePointDeltaY''' . |
<declaration> | <declaration> | ||
| − | Property|TransformBasePointDeltaY | + | Property|TTransform.TransformBasePointDeltaY |
Result|Float|. | Result|Float|. | ||
</declaration> | </declaration> | ||
| Vrstica 175: | Vrstica 183: | ||
==TransformBasePointFacX== | ==TransformBasePointFacX== | ||
| − | . | + | Property'''TransformBasePointFacX''' . |
<declaration> | <declaration> | ||
| − | Property|TransformBasePointFacX | + | Property|TTransform.TransformBasePointFacX |
Result|Float|. | Result|Float|. | ||
</declaration> | </declaration> | ||
| Vrstica 183: | Vrstica 191: | ||
==TransformBasePointFacY== | ==TransformBasePointFacY== | ||
| − | . | + | Property'''TransformBasePointFacY''' . |
<declaration> | <declaration> | ||
| − | Property|TransformBasePointFacY | + | Property|TTransform.TransformBasePointFacY |
Result|Float|. | Result|Float|. | ||
</declaration> | </declaration> | ||
| Vrstica 191: | Vrstica 199: | ||
==TransformBasePointX== | ==TransformBasePointX== | ||
| − | . | + | Property'''TransformBasePointX''' . |
<declaration> | <declaration> | ||
| − | Property|TransformBasePointX | + | Property|TTransform.TransformBasePointX |
Result|Float|. | Result|Float|. | ||
</declaration> | </declaration> | ||
| Vrstica 199: | Vrstica 207: | ||
==TransformBasePointY== | ==TransformBasePointY== | ||
| − | . | + | Property'''TransformBasePointY''' . |
<declaration> | <declaration> | ||
| − | Property|TransformBasePointY | + | Property|TTransform.TransformBasePointY |
Result|Float|. | Result|Float|. | ||
</declaration> | </declaration> | ||
| Vrstica 207: | Vrstica 215: | ||
==TransformCoorType== | ==TransformCoorType== | ||
| − | . | + | Property'''TransformCoorType''' . |
<declaration> | <declaration> | ||
| − | Property|TransformCoorType | + | Property|TTransform.TransformCoorType |
Result|Long|. | Result|Long|. | ||
</declaration> | </declaration> | ||
| Vrstica 215: | Vrstica 223: | ||
==TransformFieldX== | ==TransformFieldX== | ||
| − | . | + | Property'''TransformFieldX''' . |
<declaration> | <declaration> | ||
| − | Property|TransformFieldX | + | Property|TTransform.TransformFieldX |
Result|TField|. | Result|TField|. | ||
</declaration> | </declaration> | ||
| Vrstica 223: | Vrstica 231: | ||
==TransformFieldY== | ==TransformFieldY== | ||
| − | . | + | Property'''TransformFieldY''' . |
<declaration> | <declaration> | ||
| − | Property|TransformFieldY | + | Property|TTransform.TransformFieldY |
Result|TField|. | Result|TField|. | ||
</declaration> | </declaration> | ||
| Vrstica 231: | Vrstica 239: | ||
==TransformInputCS== | ==TransformInputCS== | ||
| − | . | + | Property'''TransformInputCS''' . |
<declaration> | <declaration> | ||
| − | Property|TransformInputCS | + | Property|TTransform.TransformInputCS |
Result|String|. | Result|String|. | ||
</declaration> | </declaration> | ||
| Vrstica 239: | Vrstica 247: | ||
==TransformLayer== | ==TransformLayer== | ||
| − | . | + | Property'''TransformLayer''' . |
<declaration> | <declaration> | ||
| − | Property|TransformLayer | + | Property|TTransform.TransformLayer |
Result|TLayer|. | Result|TLayer|. | ||
</declaration> | </declaration> | ||
| Vrstica 247: | Vrstica 255: | ||
==TransformOutputCS== | ==TransformOutputCS== | ||
| − | . | + | Property'''TransformOutputCS''' . |
<declaration> | <declaration> | ||
| − | Property|TransformOutputCS | + | Property|TTransform.TransformOutputCS |
Result|String|. | Result|String|. | ||
</declaration> | </declaration> | ||
| Vrstica 255: | Vrstica 263: | ||
==TransformRecordList== | ==TransformRecordList== | ||
| − | . | + | Property'''TransformRecordList''' . |
<declaration> | <declaration> | ||
| − | Property|TransformRecordList | + | Property|TTransform.TransformRecordList |
Result|TRecordList|. | Result|TRecordList|. | ||
</declaration> | </declaration> | ||
| Vrstica 263: | Vrstica 271: | ||
==TransformType== | ==TransformType== | ||
| − | . | + | Property'''TransformType''' . |
<declaration> | <declaration> | ||
| − | Property|TransformType | + | Property|TTransform.TransformType |
Result|Long|. | Result|Long|. | ||
</declaration> | </declaration> | ||
<source></source> | <source></source> | ||
| + | |||
Redakcija: 10:32, 24. marec 2010
Razred TTransform je namenjen transformaciji koordinat.
Tipično se uporablja na dva načina.
Uporabnik lahko sam nastavi parametre v prikazanem oknu:
// odpre masko z nastavitvami in nato izvede transformacijo
If Transform.Edit Then
Transform.Execute
EndIfali pa izvede transformacijo s fiksnimi nastavitvami:
// naredi nekaj
Transform.InputLayer = [ime plasti]
Transform.OutputLayer = L2
Transform.TransformType = 1
Transform.TransformLayer = L
Transform.TransformCoorType = 2
If InputPolygon ("Vnesi območje transformacije", PA) Then
Transform.Area = PA
Destroy (PA)
Else
Transform.Area = Nil
EndIf
Transform.ExecuteEdit
Metoda Edit odpre masko za roćno določanje nastavitev transformacije.
| Method TTransform.Edit As Boolean | ||
| Result | Optional Boolean | Vrne true/false glede na to, ali je uporabnik zapustil masko s Potrdi oz. Opusti. |
Execute
Metoda Execute izvede transformacijo podatkov iz vhodne v izhodno podatkovno plast. Metoda vrne true/false glede na to, ali se je transformacija uspešno izvedla.
| Method TTransform.Execute As Boolean | ||
| Result | Optional Boolean | . |
InputLayer
Lastnost InputLayer nastavimo vhodno podatkovno plast transformacije. Kadar se nastavi InputRecordList, je ni potrebno nastavljati, ker se upošteva kar podatkovna plast iz liste zapisov.
| Property TTransform.InputLayer As TLayer | ||
| Result | TLayer | . |
InputRecordList
Lastnost InputRecordList nastavimo vhodno listo zapisov transformacije. Če se ne nastavi oz. je nastavljena na nil, se privzame lista vseh zapisov. Če se nastavi, ni potrebno dodatno nastavljati InputLayer, saj se plast prevzame iz liste zapisov.
| Property TTransform.InputRecordList As TRecordList | ||
| Result | TRecordList | . |
TransformType
PropertyTransformType . 0 - Linearna transformacija 1 - Po kvadratu oddaljenosti 2 - Kvadrat oddaljenosti (Veliko transformacijskih točk) 3 - Med koordinatnimi sistemi
| Property TTransform.TransformType As Long | ||
| Result | Long | . |
TransformCoorType
PropertyTransformCoorType . 0 - Centroid + Nova lokacija 1 - Centroid + Stara lokacija 2 - Linija (stare proti novi lokaciji)
| Property TTransform.TransformCoorType As Long | ||
| Result | Long | . |
OutputLayer
Lastnost OutputLayer nastavlja izhodno plast transformacije. Če se ne nastavi, se avtomatsko naredi nova plast in je po Execute ukazu shranjena referenca na novo plast. Če pa je nastavljena, se podatki in struktura obstoječe plasti briše in ponovno nastavi iz vhodne plasti za transformacijo.
| Property TTransform.OutputLayer As TLayer | ||
| Result | TLayer | . |
Transform.OutputLayer = [Ime Plasti]
Area
PropertyArea .
| Property TTransform.Area As TPointArray | ||
| Result | TPointArray | . |
Edit
MethodEdit .
| Method TTransform.Edit As Boolean | ||
| Result | Optional Boolean | . |
Execute
MethodExecute .
| Method TTransform.Execute As Boolean | ||
| Result | Optional Boolean | . |
InputLayer
PropertyInputLayer .
| Property TTransform.InputLayer As TLayer | ||
| Result | TLayer | . |
InputRecordList
PropertyInputRecordList .
| Property TTransform.InputRecordList As TRecordList | ||
| Result | TRecordList | . |
OutputLayer
PropertyOutputLayer .
| Property TTransform.OutputLayer As TLayer | ||
| Result | TLayer | . |
TransformBasePointAngle
PropertyTransformBasePointAngle .
| Property TTransform.TransformBasePointAngle As Float | ||
| Result | Float | . |
TransformBasePointDeltaX
PropertyTransformBasePointDeltaX .
| Property TTransform.TransformBasePointDeltaX As Float | ||
| Result | Float | . |
TransformBasePointDeltaY
PropertyTransformBasePointDeltaY .
| Property TTransform.TransformBasePointDeltaY As Float | ||
| Result | Float | . |
TransformBasePointFacX
PropertyTransformBasePointFacX .
| Property TTransform.TransformBasePointFacX As Float | ||
| Result | Float | . |
TransformBasePointFacY
PropertyTransformBasePointFacY .
| Property TTransform.TransformBasePointFacY As Float | ||
| Result | Float | . |
TransformBasePointX
PropertyTransformBasePointX .
| Property TTransform.TransformBasePointX As Float | ||
| Result | Float | . |
TransformBasePointY
PropertyTransformBasePointY .
| Property TTransform.TransformBasePointY As Float | ||
| Result | Float | . |
TransformCoorType
PropertyTransformCoorType .
| Property TTransform.TransformCoorType As Long | ||
| Result | Long | . |
TransformFieldX
PropertyTransformFieldX .
| Property TTransform.TransformFieldX As TField | ||
| Result | TField | . |
TransformFieldY
PropertyTransformFieldY .
| Property TTransform.TransformFieldY As TField | ||
| Result | TField | . |
TransformInputCS
PropertyTransformInputCS .
| Property TTransform.TransformInputCS As String | ||
| Result | String | . |
TransformLayer
PropertyTransformLayer .
| Property TTransform.TransformLayer As TLayer | ||
| Result | TLayer | . |
TransformOutputCS
PropertyTransformOutputCS .
| Property TTransform.TransformOutputCS As String | ||
| Result | String | . |
TransformRecordList
PropertyTransformRecordList .
| Property TTransform.TransformRecordList As TRecordList | ||
| Result | TRecordList | . |
TransformType
PropertyTransformType .
| Property TTransform.TransformType As Long | ||
| Result | Long | . |