1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| 'translation de coordonnées pour rester "au centre"
Txlat = 105 -latact // Latitde actuelle
Txlon = 105 -lonact // longitude actuelle
If Txlat<>0 OR Txlon <> 0 Then
drwimage.Clear(cBlack) // 'efface l'image
'charge les points dans la dalle (filtre sur la table)
skey="(lat<(latact+larg) OR lat>(latact-larg)) AND (lon <(lonact+larg) OR lon >(lonact-larg))"
skey=StrReplace(skey, "latact", latact)
skey=StrReplace(skey, "lonact", lonact)
skey=StrReplace(skey, "larg", larg)
tablelat.Filter(skey)
If tablelat.rowcount>0 Then
alatdeb=(tablelat.Cell("lat",0)) + Txlat
alondeb=(tablelat.Cell("lon",0)) + Txlon
End If
For j=1 To ((tablelat.rowcount)-1)
'on applique les correctifs decalage dans le cadre
alatact= (tablelat.Cell("lat",j)) + Txlat
alonact= (tablelat.Cell("lon",j)) + Txlon
'redessine l'image
drwImage.DrawLine(penex1.Value,alondeb,alatdeb,
alonact,alatact) 'redessine le rectangle
alatdeb= alatact
alondeb= alonact
Next |
Partager