[Qgis-user] Raster VRT SRS syntax

Zoltan Szecsei zoltans at geograph.co.za
Wed Oct 29 06:37:57 PDT 2014


On 2014/10/29 14:37, Even Rouault wrote:
> Perhaps the following can work too (untested) provided a 'ZANGI' file 
> exists in the PROJ.4 resource directory that contains the 'epsg' file, 
> grids, and other files. <SRS>+init=ZANGI:ZANGI:HBKNO27</srs> 

Hi Even,
When I let gdalbuildvrt simply add its own SRS from the image files, 
when I load that VRT into QGIS, it loads correctly without asking me to 
specify the CRS for that layer.

However

When I query that layer to see its CRS, it shows me a Generated CRS, 
even though the HBKNO27 is in the known list (see screenshot below).
I want the user to see the named CRS and not the generated (more 
confusing) CRS.

The first few lines of my VRT is as follows, yet I still get the pop-up 
asking me to set the CRS.
(I'm still trying different permutations, but I just wanted to give 
feedback)
Regards,
Zoltan

    <VRTDataset rasterXSize="24455" rasterYSize="22659">
       <SRS>+init=ZANGI:ZANGI:HBKNO27</SRS>
       <GeoTransform>  9.5763066019661390e+04, 5.0000000000000000e-01, 
    0.0000000000000000e+00, -2.5336277500000000e+06, 
    0.0000000000000000e+00, -5.0000000000000000e-01</GeoTransform>
       <VRTRasterBand dataType="Byte" band="1">
    <NoDataValue>0.00000000000000E+00</NoDataValue>
         <ColorInterp>Red</ColorInterp>
         <SimpleSource>









-- 

===========================================
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Services

P.O. Box 7, Muizenberg 7950, South Africa.

Mobile: +27-83-6004028
Fax:    +27-86-6115323     www.geograph.co.za
===========================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20141029/d775e4cc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idaaiebj.jpg
Type: image/jpeg
Size: 70407 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20141029/d775e4cc/attachment.jpg>


More information about the Qgis-user mailing list