#1 Thu 23 November 2017 09:33
- BOYER.M
- Participant actif
- Date d'inscription: 5 Sep 2012
- Messages: 148
QGIS 2.16.0: Ouvrir un fichier .vrt
Bonjour,
On m'a envoyé un fichier .vrt est il possible de l'ouvrir et le visualiser sur qgis sans avoir les images rasters d'origine ?
Cordialement,
Hors ligne
#2 Thu 23 November 2017 09:51
- nico-29
- Participant assidu
- Lieu: Brest
- Date d'inscription: 2 Jun 2006
- Messages: 185
Re: QGIS 2.16.0: Ouvrir un fichier .vrt
Bonjour,
Un fichier .vrt est en fait un fichier xml qui stocke les caractéristiques des tuiles raster et les liens vers ces tuiles (voir balise ComplexSource dans l'exemple ci-dessous).
Donc il faut avoir les tuiles d'origine.
Exemple de fichier vrt:
Code:
<VRTDataset rasterXSize="27000" rasterYSize="25000"> <SRS>PROJCS["RGF93_Lambert_93",GEOGCS["GCS_RGF_1993",DATUM["Reseau_Geodesique_Francais_1993",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["False_Easting",700000.0],PARAMETER["False_Northing",6600000.0],PARAMETER["Central_Meridian",3.0],PARAMETER["Standard_Parallel_1",44.0],PARAMETER["Standard_Parallel_2",49.0],PARAMETER["Latitude_Of_Origin",46.5],UNIT["Meter",1.0]]</SRS> <GeoTransform> 8.4997500000000000e+004, 5.0000000000000000e+000, 0.0000000000000000e+000, 6.8760025000000000e+006, 0.0000000000000000e+000,-5.0000000000000000e+000</GeoTransform> <VRTRasterBand dataType="Float32" band="1"> <Metadata> <MDI key="STATISTICS_MAXIMUM">154.89999389648</MDI> <MDI key="STATISTICS_MEAN">13.554121093924</MDI> <MDI key="STATISTICS_MINIMUM">-103.05000305176</MDI> <MDI key="STATISTICS_STDDEV">45.28775398041</MDI> </Metadata> <NoDataValue>-99999</NoDataValue> <Histograms> <HistItem> <HistMin>-103.1789780502319</HistMin> <HistMax>155.0289688949585</HistMax> <BucketCount>1000</BucketCount> <IncludeOutOfRange>0</IncludeOutOfRange> <Approximate>1</Approximate> <HistCounts>5|103|66|102|161|172|181|90|73|39|4|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|2|13|18|34|118|271|389|407|462|459|493|634|788|955|1446|954|1044|888|902|976|1016|864|916|919|820|791|688|667|641|753|915|959|929|760|730|701|619|661|584|560|526|478|475|376|440|386|414|405|448|449|398|443|430|425|379|346|419|439|532|533|454|382|373|311|268|236|204|201|202|181|155|154|139|115|109|108|112|108|90|73|59|64|54|46|60|48|43|48|35|59|88|212|427|637|694|1059|1542|2154|2291|2626|2436|2377|2423|2517|2527|2237|2157|1870|1554|1380|1274|1083|1190|1218|1319|1413|1446|1509|1505|1624|1689|1816|1812|2011|1855|1813|1584|1562|1572|1786|1735|1755|1815|1906|2244|2107|1583|1287|1376|1354|1499|1538|1594|1814|1740|1915|1911|2275|2496|2657|2695|2792|2678|2571|2517|2416|2184|2112|2049|1894|1836|1586|1662|1526|1404|1382|1356|1278|1321|1407|1345|1505|1389|1594|1482|1402|1442|1949|2165|2417|1913|1593|1545|1414|1442|1512|1605|1701|2434|3439|6723|8861|8364|7596|7461|7979|9851|8774|6038|4387|3278|3043|3091|3323|4003|3611|3299|2402|2108|2308|2051|1765|1747|2185|2388|2369|2608|3073|3398|2518|2078|2180|2512|3242|4512|4910|6115|5814|4403|3835|3119|5831|2274|2120|2513|2791|1929|1779|1676|1348|1231|1285|1104|1081|1095|1021|994|1243|1665|2295|1883|1579|5819|2088|1824|1084|1192|1821|2370|2619|3211|3409|3093|2353|1248|855|687|706|684|658|604|735|914|1160|1302|1396|1709|1875|1948|2256|2216|1738|1531|1535|1421|1518|1393|1336|1464|1471|1605|1604|1666|1782|1795|1895|2235|2645|2538|2034|1673|1292|1330|1490|1493|1606|1449|1418|1636|1602|1428|1183|847|836|855|840|799|763|681|737|764|612|589|635|718|787|672|626|616|671|614|507|428|365|343|277|272|330|357|409|334|388|434|426|461|419|422|343|204|186|208|184|160|173|161|158|154|120|129|166|131|165|126|146|175|188|220|182|201|243|224|222|248|216|250|203|205|229|214|184|204|215|173|173|168|154|192|183|193|200|226|260|254|283|305|387|445|496|487|465|505|552|579|547|531|543|529|516|574|631|596|663|575|645|829|787|811|862|835|823|787|814|861|747|704|721|721|691|664|626|644|643|666|638|635|651|638|637|632|660|653|680|675|711|677|748|744|868|906|878|908|986|1000|1103|1046|923|939|979|969|1057|1080|1075|981|1070|1129|1133|1204|1294|1356|1498|1570|1762|2059|2044|1631|1499|1506|1489|1372|1369|1455|1692|1491|1427|1396|1354|1566|1606|1578|1623|1716|1812|1826|1781|1698|1487|1274|1162|1059|962|953|1008|960|1040|947|996|913|920|913|860|840|826|807|859|831|930|986|917|909|935|1007|1274|1372|1185|1069|1240|1188|1204|1178|1187|1259|1303|1241|1250|1199|1181|1315|1169|1164|1115|1219|1187|1167|1140|1145|1144|1343|1615|1552|1323|1127|1140|1047|1147|1130|1133|1114|1055|1120|1126|1137|1101|1474|1432|1344|1194|774|584|547|660|627|596|515|514|506|484|449|449|500|496|465|468|541|511|515|492|539|586|511|476|393|365|326|169|117|109|126|109|113|131|124|113|105|105|106|103|103|121|138|134|119|136|139|142|149|159|157|155|155|143|144|151|152|150|160|134|167|137|146|153|140|123|142|141|123|131|118|106|117|119|114|113|119|106|137|133|135|151|116|109|90|94|84|111|130|123|131|144|123|102|89|114|94|95|107|95|104|94|83|68|63|71|72|78|96|86|79|68|73|78|86|80|76|86|79|107|101|92|95|91|75|108|86|117|91|91|119|102|108|100|109|100|115|102|116|119|109|117|123|143|138|143|148|146|150|156|195|175|233|224|232|257|254|268|231|266|254|271|288|315|285|320|303|319|316|320|290|303|264|281|278|257|262|241|249|262|234|244|225|224|232|223|213|212|193|201|208|200|201|213|215|223|185|213|191|207|183|203|205|206|213|204|240|225|206|209|223|207|209|208|189|195|193|202|198|202|209|212|185|207|179|195|176|200|205|185|190|187|198|204|210|194|194|210|202|152|160|202|234|217|195|200|189|193|185|187|269|178|154|124|103|97|90|75|66|64|78|81|74|79|71|55|42|31|25|21|24|21|12|17|9|9|2</HistCounts> </HistItem> </Histograms> <ComplexSource> <SourceFilename relativeToVRT="0">C:\data\MNT5m/LITTO3D_FRA_0085_6832_MNT5_20141222_LAMB93_RGF93_IGN69.asc</SourceFilename> <SourceBand>1</SourceBand> <SourceProperties RasterXSize="200" RasterYSize="200" DataType="Float32" BlockXSize="200" BlockYSize="1" /> <SrcRect xOff="0" yOff="0" xSize="200" ySize="200" /> <DstRect xOff="0" yOff="8800" xSize="200" ySize="200" /> <NODATA>-99999</NODATA> </ComplexSource> <ComplexSource> <SourceFilename relativeToVRT="0">C:\data\MNT5m/LITTO3D_FRA_0085_6833_MNT5_20141222_LAMB93_RGF93_IGN69.asc</SourceFilename> <SourceBand>1</SourceBand> <SourceProperties RasterXSize="200" RasterYSize="200" DataType="Float32" BlockXSize="200" BlockYSize="1" /> <SrcRect xOff="0" yOff="0" xSize="200" ySize="200" /> <DstRect xOff="0" yOff="8600" xSize="200" ySize="200" /> <NODATA>-99999</NODATA> </ComplexSource>
Nico
Hors ligne
#3 Thu 23 November 2017 10:11
- BOYER.M
- Participant actif
- Date d'inscription: 5 Sep 2012
- Messages: 148
Re: QGIS 2.16.0: Ouvrir un fichier .vrt
Merci, c'est bien ce qu'il me semblait, or je n'ai pas les tuiles d'origines.
Hors ligne