TTransform: Razlika med redakcijama
| Vrstica 102: | Vrstica 102: | ||
Property '''Area''' . | Property '''Area''' . | ||
{| class="param" | {| class="param" | ||
| − | | '''Result''' || '' | + | | '''Result''' || ''TPointArray'' || . |
|} | |} | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==Edit== | ==Edit== | ||
<source class="declaration">Method TTransform.Edit As Boolean</source> | <source class="declaration">Method TTransform.Edit As Boolean</source> | ||
| Vrstica 115: | Vrstica 115: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==Execute== | ==Execute== | ||
<source class="declaration">Method TTransform.Execute As Boolean</source> | <source class="declaration">Method TTransform.Execute As Boolean</source> | ||
| Vrstica 124: | Vrstica 124: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==InputLayer== | ==InputLayer== | ||
<source class="declaration">Property TTransform.InputLayer As TLayer</source> | <source class="declaration">Property TTransform.InputLayer As TLayer</source> | ||
Property '''InputLayer''' . | Property '''InputLayer''' . | ||
{| class="param" | {| class="param" | ||
| − | | '''Result''' || '' | + | | '''Result''' || ''TLayer'' || . |
|} | |} | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==InputRecordList== | ==InputRecordList== | ||
<source class="declaration">Property TTransform.InputRecordList As TRecordList</source> | <source class="declaration">Property TTransform.InputRecordList As TRecordList</source> | ||
Property '''InputRecordList''' . | Property '''InputRecordList''' . | ||
{| class="param" | {| class="param" | ||
| − | | '''Result''' || '' | + | | '''Result''' || ''TRecordList'' || . |
|} | |} | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==OutputLayer== | ==OutputLayer== | ||
<source class="declaration">Property TTransform.OutputLayer As TLayer</source> | <source class="declaration">Property TTransform.OutputLayer As TLayer</source> | ||
Property '''OutputLayer''' . | Property '''OutputLayer''' . | ||
{| class="param" | {| class="param" | ||
| − | | '''Result''' || '' | + | | '''Result''' || ''TLayer'' || . |
|} | |} | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformBasePointAngle== | ==TransformBasePointAngle== | ||
<source class="declaration">Property TTransform.TransformBasePointAngle As Float</source> | <source class="declaration">Property TTransform.TransformBasePointAngle As Float</source> | ||
| Vrstica 160: | Vrstica 160: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformBasePointDeltaX== | ==TransformBasePointDeltaX== | ||
<source class="declaration">Property TTransform.TransformBasePointDeltaX As Float</source> | <source class="declaration">Property TTransform.TransformBasePointDeltaX As Float</source> | ||
| Vrstica 169: | Vrstica 169: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformBasePointDeltaY== | ==TransformBasePointDeltaY== | ||
<source class="declaration">Property TTransform.TransformBasePointDeltaY As Float</source> | <source class="declaration">Property TTransform.TransformBasePointDeltaY As Float</source> | ||
| Vrstica 178: | Vrstica 178: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformBasePointFacX== | ==TransformBasePointFacX== | ||
<source class="declaration">Property TTransform.TransformBasePointFacX As Float</source> | <source class="declaration">Property TTransform.TransformBasePointFacX As Float</source> | ||
| Vrstica 187: | Vrstica 187: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformBasePointFacY== | ==TransformBasePointFacY== | ||
<source class="declaration">Property TTransform.TransformBasePointFacY As Float</source> | <source class="declaration">Property TTransform.TransformBasePointFacY As Float</source> | ||
| Vrstica 196: | Vrstica 196: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformBasePointX== | ==TransformBasePointX== | ||
<source class="declaration">Property TTransform.TransformBasePointX As Float</source> | <source class="declaration">Property TTransform.TransformBasePointX As Float</source> | ||
| Vrstica 205: | Vrstica 205: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformBasePointY== | ==TransformBasePointY== | ||
<source class="declaration">Property TTransform.TransformBasePointY As Float</source> | <source class="declaration">Property TTransform.TransformBasePointY As Float</source> | ||
| Vrstica 214: | Vrstica 214: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformCoorType== | ==TransformCoorType== | ||
<source class="declaration">Property TTransform.TransformCoorType As Long</source> | <source class="declaration">Property TTransform.TransformCoorType As Long</source> | ||
| Vrstica 223: | Vrstica 223: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformFieldX== | ==TransformFieldX== | ||
<source class="declaration">Property TTransform.TransformFieldX As TField</source> | <source class="declaration">Property TTransform.TransformFieldX As TField</source> | ||
Property '''TransformFieldX''' . | Property '''TransformFieldX''' . | ||
{| class="param" | {| class="param" | ||
| − | | '''Result''' || '' | + | | '''Result''' || ''TField'' || . |
|} | |} | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformFieldY== | ==TransformFieldY== | ||
<source class="declaration">Property TTransform.TransformFieldY As TField</source> | <source class="declaration">Property TTransform.TransformFieldY As TField</source> | ||
Property '''TransformFieldY''' . | Property '''TransformFieldY''' . | ||
{| class="param" | {| class="param" | ||
| − | | '''Result''' || '' | + | | '''Result''' || ''TField'' || . |
|} | |} | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformInputCS== | ==TransformInputCS== | ||
<source class="declaration">Property TTransform.TransformInputCS As String</source> | <source class="declaration">Property TTransform.TransformInputCS As String</source> | ||
| Vrstica 250: | Vrstica 250: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformLayer== | ==TransformLayer== | ||
<source class="declaration">Property TTransform.TransformLayer As TLayer</source> | <source class="declaration">Property TTransform.TransformLayer As TLayer</source> | ||
Property '''TransformLayer''' . | Property '''TransformLayer''' . | ||
{| class="param" | {| class="param" | ||
| − | | '''Result''' || '' | + | | '''Result''' || ''TLayer'' || . |
|} | |} | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformOutputCS== | ==TransformOutputCS== | ||
<source class="declaration">Property TTransform.TransformOutputCS As String</source> | <source class="declaration">Property TTransform.TransformOutputCS As String</source> | ||
| Vrstica 268: | Vrstica 268: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformRecordList== | ==TransformRecordList== | ||
<source class="declaration">Property TTransform.TransformRecordList As TRecordList</source> | <source class="declaration">Property TTransform.TransformRecordList As TRecordList</source> | ||
Property '''TransformRecordList''' . | Property '''TransformRecordList''' . | ||
{| class="param" | {| class="param" | ||
| − | | '''Result''' || '' | + | | '''Result''' || ''TRecordList'' || . |
|} | |} | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| − | 2010-03-20 | + | 2010-03-20 16:02:54 |
==TransformType== | ==TransformType== | ||
<source class="declaration">Property TTransform.TransformType As Long</source> | <source class="declaration">Property TTransform.TransformType As Long</source> | ||
| Vrstica 286: | Vrstica 286: | ||
<source class="example"> | <source class="example"> | ||
</source> | </source> | ||
| + | |||
[[Category:Razredi]] | [[Category:Razredi]] | ||
[[Category:SDMS Basic]] | [[Category:SDMS Basic]] | ||
Redakcija: 18:31, 20. marec 2010
Razred TTransform je namenjen transformaciji koordinat.
<my test="1">Vsebina</my>
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
Method TTransform.Edit As BooleanMetoda Edit odpre masko za roćno določanje nastavitev transformacije. Metoda vrne true/false glede na to, ali je uporabnik zapustil masko s Potrdi oz. Opusti.
Execute
Method TTransform.Execute As BooleanMetoda Execute izvede transformacijo podatkov iz vhodne v izhodno podatkovno plast. Metoda vrne true/false glede na to, ali se je transformacija uspešno izvedla.
InputLayer
Property TTransform.InputLayer As TLayerLastnosti InputLayer nastavimo vhodno podatkovno plast transformacije. Kadar se nastavi InputRecordList, je ni potrebno nastavljati, ker se upošteva kar podatkovna plast iz liste zapisov.
InputRecordList
Property TTransform.InputRecordList As TRecordListLastnosti 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.
TransformType
0 - Linearna transformacija 1 - Po kvadratu oddaljenosti 2 - Kvadrat oddaljenosti (Veliko transformacijskih točk) 3 - Med koordinatnimi sistemi
TransformLayer
TransformRecordList
TransformCoorType
0 - Centroid + Nova lokacija 1 - Centroid + Stara lokacija 2 - Linija (stare proti novi lokaciji)
'
TransformFieldY
TransformFieldX
OutputLayer|Property TTransform.OutputLayer As TLayerLastnost 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.
Transform.OutputLayer = [Ime Plasti]Area
Area
Property TTransform.Area As TPointArrayProperty Area .
| Result | TPointArray | . |
2010-03-20 16:02:54
Edit
Method TTransform.Edit As BooleanMethod Edit .
| Result | Boolean | . |
2010-03-20 16:02:54
Execute
Method TTransform.Execute As BooleanMethod Execute .
| Result | Boolean | . |
2010-03-20 16:02:54
InputLayer
Property TTransform.InputLayer As TLayerProperty InputLayer .
| Result | TLayer | . |
2010-03-20 16:02:54
InputRecordList
Property TTransform.InputRecordList As TRecordListProperty InputRecordList .
| Result | TRecordList | . |
2010-03-20 16:02:54
OutputLayer
Property TTransform.OutputLayer As TLayerProperty OutputLayer .
| Result | TLayer | . |
2010-03-20 16:02:54
TransformBasePointAngle
Property TTransform.TransformBasePointAngle As FloatProperty TransformBasePointAngle .
| Result | Float | . |
2010-03-20 16:02:54
TransformBasePointDeltaX
Property TTransform.TransformBasePointDeltaX As FloatProperty TransformBasePointDeltaX .
| Result | Float | . |
2010-03-20 16:02:54
TransformBasePointDeltaY
Property TTransform.TransformBasePointDeltaY As FloatProperty TransformBasePointDeltaY .
| Result | Float | . |
2010-03-20 16:02:54
TransformBasePointFacX
Property TTransform.TransformBasePointFacX As FloatProperty TransformBasePointFacX .
| Result | Float | . |
2010-03-20 16:02:54
TransformBasePointFacY
Property TTransform.TransformBasePointFacY As FloatProperty TransformBasePointFacY .
| Result | Float | . |
2010-03-20 16:02:54
TransformBasePointX
Property TTransform.TransformBasePointX As FloatProperty TransformBasePointX .
| Result | Float | . |
2010-03-20 16:02:54
TransformBasePointY
Property TTransform.TransformBasePointY As FloatProperty TransformBasePointY .
| Result | Float | . |
2010-03-20 16:02:54
TransformCoorType
Property TTransform.TransformCoorType As LongProperty TransformCoorType .
| Result | Long | . |
2010-03-20 16:02:54
TransformFieldX
Property TTransform.TransformFieldX As TFieldProperty TransformFieldX .
| Result | TField | . |
2010-03-20 16:02:54
TransformFieldY
Property TTransform.TransformFieldY As TFieldProperty TransformFieldY .
| Result | TField | . |
2010-03-20 16:02:54
TransformInputCS
Property TTransform.TransformInputCS As StringProperty TransformInputCS .
| Result | String | . |
2010-03-20 16:02:54
TransformLayer
Property TTransform.TransformLayer As TLayerProperty TransformLayer .
| Result | TLayer | . |
2010-03-20 16:02:54
TransformOutputCS
Property TTransform.TransformOutputCS As StringProperty TransformOutputCS .
| Result | String | . |
2010-03-20 16:02:54
TransformRecordList
Property TTransform.TransformRecordList As TRecordListProperty TransformRecordList .
| Result | TRecordList | . |
2010-03-20 16:02:54
TransformType
Property TTransform.TransformType As LongProperty TransformType .
| Result | Long | . |