<div dir="ltr"><div><div>Michael,<br><br></div>Healpix is not directly supported by OGRSpatialReference - the core of the coordinate system machinery for GDAL/OGR.  However, you can request GDAL to treat this as a PROJ.4 extension to WKT by adding the +wktext flag.  I would add that the -E and -f flags are options to the cs2cs commandline program, and not part of a PROJ.4 coordinate system and so should not be included.  The result is something like this:<br>
<br>gdalsrsinfo '+proj=rhealpix -I +lon_0=0 +a=1 +ellps=WGS84 +npole=0 +spole=0 +wktext'<br><br>PROJ.4 : '+proj=rhealpix -I +lon_0=0 +a=1 +ellps=WGS84 +npole=0 +spole=0 +wktext'<br><br>OGC WKT :<br>PROJCS["unnamed",<br>
    GEOGCS["WGS 84",<br>        DATUM["unknown",<br>            SPHEROID["WGS84",6378137,298.257223563]],<br>        PRIMEM["Greenwich",0],<br>        UNIT["degree",0.0174532925199433]],<br>
    PROJECTION["custom_proj4"],<br>    EXTENSION["PROJ4","+proj=rhealpix -I +lon_0=0 +a=1 +ellps=WGS84 +npole=0 +spole=0 +wktext"]]<br><br></div>Best regards,<br>Frank<br><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Jul 16, 2013 at 6:48 PM, Michael Speth <span dir="ltr"><<a href="mailto:spethm@landcareresearch.co.nz" target="_blank">spethm@landcareresearch.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div dir="ltr">Greetings,
<div>  I am unable to use the HEALpix and rHEALPix projections which have been added about a year ago to proj.4 in gdalwarp.  Is there a configuration file for gdal that needs to be updated for this projection?</div>
<div><br>
</div>
<div>Here is the command in question that fails:</div>
<div>
<p style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(31,73,125)">gdalwarp -s_srs EPSG:26711 -t_srs '+proj=rhealpix -f '%.2f' -I +lon_0=0 +a=1 +ellps=WGS84 +npole=0 +spole=0 -E'  ~/data/utm_orig.tif rhealpix.tif</span></p>

<div>The error message</div>
<div><span style="color:rgb(31,73,125)">“Translating source or target SRS failed:”</span><br>
</div>
<div><br>
</div>
<div>Thanks</div><span class="HOEnZb"><font color="#888888">
-- <br>
<pre cols="72">Michael Speth
Research Systems Developer
Landcare Research</pre>
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>
<hr>
<font color="Green" face="Arial" size="1"><br>
Please consider the environment before printing this email<br>
Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.<br>

The views expressed in this email may not be those of Landcare Research New Zealand Limited. <a href="http://www.landcareresearch.co.nz" target="_blank">http://www.landcareresearch.co.nz</a><br>
</font>
</font></span></div>

<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush    | Geospatial Software Developer<br>
</div>