[gdal-dev] "Times" projection in GDAL

Dmitriy Baryshnikov bishop.dev at gmail.com
Tue Mar 25 01:54:49 PDT 2014


Hi Even,

hfadataset.cpp near 3686 ln
else if( EQUAL(pszProjName, "Times") )
{
sPro.proNumber = EPRJ_TIMES;
sPro.proName = (char*) "Times";
sPro.proParams[4] = oSRS.GetProjParm(SRS_PP_CENTRAL_MERIDIAN)*D2R;
sPro.proParams[6] = oSRS.GetProjParm(SRS_PP_FALSE_EASTING);
sPro.proParams[7] = oSRS.GetProjParm(SRS_PP_FALSE_NORTHING);
}

also I try this code
OGRSpatialReference pSpaRef;
const char *pszWkt = 
"PROJCS[\"World_Times\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Times\"],PARAMETER[\"Central_Meridian\",0.0],UNIT[\"Meter\",1.0]]";
pSpaRef.importFromWkt((char **)&pszWkt);
char *pszPrtWKT = NULL;
pSpaRef.exportToPrettyWkt(&pszPrtWKT );
CPLFree(pszPrtWKT );

And OGRSpatialReference eat this WKT.

Best regards,
     Dmitry

25.03.2014 12:35, Even Rouault пишет:
> Dmitriy,
>
> where did you find reference to the "times" projection in OGR ? I can't find it.
>
> Even
>



More information about the gdal-dev mailing list