<div dir="ltr">Hi Josè,<div>MODIS uses a custom sinusoidal projection based on a sphere:  <a href="https://modis-land.gsfc.nasa.gov/GCTP.html">https://modis-land.gsfc.nasa.gov/GCTP.html</a> I</div><div>It's defintions is <a href="http://spatialreference.org/ref/sr-org/modis-sinusoidal/">http://spatialreference.org/ref/sr-org/modis-sinusoidal/</a></div><div><br></div><div>Inserting the definition inside PostGIS with a user code (>100000 by convention) should be enough:</div><div><br></div><div><div>INSERT INTO spatial_ref_sys VALUES (</div><div>100001, </div><div>'MODIS sinusoidal', </div><div>100001, 'PROJCS["Sinusoidal",GEOGCS["GCS_Undefined",DATUM["D_Undefined",SPHEROID["User_Defined_Spheroid",6371007.181,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.017453292519943295]],PROJECTION["Sinusoidal"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],UNIT["Meter",1.0]]',</div><div>'+proj=sinu +lon_0=0 +x_0=0 +y_0=0 +a=6371007.181 +b=6371007.181 +units=m +no_defs'</div><div>)</div></div><div><br></div><div>giovanni</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-10 11:09 GMT+01:00 José María <span dir="ltr"><<a href="mailto:jmamuedo@gmail.com" target="_blank">jmamuedo@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div>The question is I´m no sure if this reference system is the correct to define a Sinusoidal Projection from MODIS.<div><br></div><div>Anyone may give me advise.</div><div><br></div><div>Thanks,</div><div><br></div><div>J.M.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-05 11:35 GMT+01:00 G. Allegri <span dir="ltr"><<a href="mailto:giohappy@gmail.com" target="_blank">giohappy@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">I don't have my pc right now to verify, but in that case you can insert it by hand using the proj4 definition: <a href="http://epsg.io/54008.proj4" target="_blank">http://epsg.io/540<wbr>08.proj4</a><div dir="auto"><br></div><div dir="auto">Giovanni</div></div><div class="m_638989996508027567HOEnZb"><div class="m_638989996508027567h5"><div class="gmail_extra"><br><div class="gmail_quote">Il 5 gen 2018 11:14 AM, "José María" <<a href="mailto:jmamuedo@gmail.com" target="_blank">jmamuedo@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks G. Allegri.<div><br></div><div>But the problem is I don´t get  any response with that query. So, that means my PostGIS has not this srid=54008.</div><div><br></div><div>(Postgresql 9.6 PostGIS 2.0)</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-05 11:06 GMT+01:00 G. Allegri <span dir="ltr"><<a href="mailto:giohappy@gmail.com" target="_blank">giohappy@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto">World sinusoidal is EPSG:54008 so <span style="font-family:sans-serif">I guess it's proj string [1] is already inside the spatial_ref_sys table, which is where CRS definitions are defined in PostGIS.</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">You can verify it doing:</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto">SELECT * FROM spatial_ref_sys WHERE srid = 54008<span style="font-family:sans-serif"><br></span></div><div dir="auto"><br></div><div dir="auto">Giovanni</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">[1] <a href="http://epsg.io/54008.proj4" target="_blank">http://epsg.io/54008.proj4</a></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_638989996508027567m_-7055423870244336203m_1598915012493613001h5">Il 5 gen 2018 10:46 AM, "José María" <<a href="mailto:jmamuedo@gmail.com" target="_blank">jmamuedo@gmail.com</a>> ha scritto:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_638989996508027567m_-7055423870244336203m_1598915012493613001h5"><div dir="ltr">Hi,<div><br></div><div>I spent several days searching info about how to use Worl Sinusoidal porjection in PostGIS. But I didn´t find any responses.</div><div><br></div><div>I only found a possible codification (54008)  in ESRI, but I don´t know how to manage this projection in PostGIS.</div><div><br></div><div>Any people can I help me with this discussion? </div><div><br></div><div><br></div><div>Thanks.  </div></div>
<br></div></div>______________________________<wbr>_________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/postgis-devel</a><br></blockquote></div></div>
<br>______________________________<wbr>_________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/postgis-devel</a><br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/postgis-devel</a><br></blockquote></div></div>
</div></div><br>______________________________<wbr>_________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/postgis-devel</a><br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/postgis-devel</a><br></blockquote></div><br></div>