Ignore:
Timestamp:
05/15/20 19:23:21 (5 years ago)
Author:
Eric.Larour
Message:

CHG: some qgis processing files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/contrib/larour/proj2shpprj.m

    r24857 r24858  
    11function proj2shpprj(filename,proj)
    22
     3        %filename: does it have an extension? remove it.
     4        [path,name,ext] = fileparts(filename);
     5
     6        %Figure out central meridian and latitude of origin:
    37        [lat,long]=projlatlong(proj);
    4        
    5         fid=fopen(filename,'w');
    6         fprintf('PROJCS["Lambert_Azimuthal_Equal_Area",GEOGCS["GCS_WGS_1984",DATUM["D_unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["latitude_of_origin",%g],PARAMETER["central_meridian",%g],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1]]',lat,long);
     8
     9        fid=fopen([path '/' name '.prj'],'w');
     10        fprintf(fid,'PROJCS["Lambert_Azimuthal_Equal_Area",GEOGCS["GCS_WGS_1984",DATUM["D_unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["latitude_of_origin",%g],PARAMETER["central_meridian",%g],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1]]',lat,long);
    711        fclose(fid);
Note: See TracChangeset for help on using the changeset viewer.