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
| ##[2_MANIPULATION_ORTHO]=group
## 08_ouverture_fichier_affichage_tfw=name
##fichiergeoref=file
#Import des librairies
import re
import math, codecs
from qgis.core import *
import qgis.utils
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import osgeo.ogr as ogr
import osgeo.osr as osr
# Ouverture du fchier source en lecture
scrFile=open(fichiergeoref,'r')
# Iterations
for line in scrFile:
if line == 0:
x = line.split(' ')[4]
print(x.rstrip())
if line == 1:
y = line.split(' ')[5]
print(y)
scrFile.close() |
Partager