<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sean Gillies (Posts about spatial reference systems)</title><link>https://sgillies.net/</link><description></description><atom:link href="https://sgillies.net/tags/spatial-reference-systems.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sun, 31 Dec 2023 01:26:20 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Rasterio 1.0.18</title><link>https://sgillies.net/2019/02/08/rasterio-1-0-18.html</link><dc:creator>Sean Gillies</dc:creator><description>&lt;p&gt;Rasterio 1.0.14 made the package more correct in how it treats the spatial
reference systems we use to share and analyze gridded spatial data, but it also
introduced several bugs. I made three releases this week, two of them to fix
regressions caused by 1.0.14. "EPSG:3857" and "+init=epsg:3857" are interpreted
differently by GDAL and in 1.0.14 we accidentally flipped from the former to
the latter, obsolete representation of EPSG spatial reference system number
3857.&lt;/p&gt;
&lt;p&gt;1.0.14 also broke the Python pickle protocol for CRS objects, something we
didn't know until users who have been sending dataset profiles, which contain
a CRS object, between processes using the multiprocessing module ran into
exceptions. There is a workaround for this and it will be fixed next week in
Rasterio 1.0.19. In case you're wondering what CRS pickle data looks like, it's
just a thin wrapper around a WKT string.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code pycon"&gt;&lt;a id="rest_code_4e31cbe1138b4d8a985cf701e3d3df98-1" name="rest_code_4e31cbe1138b4d8a985cf701e3d3df98-1" href="https://sgillies.net/2019/02/08/rasterio-1-0-18.html#rest_code_4e31cbe1138b4d8a985cf701e3d3df98-1"&gt;&lt;/a&gt;&lt;span class="gp"&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;rasterio.crs&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;CRS&lt;/span&gt;
&lt;a id="rest_code_4e31cbe1138b4d8a985cf701e3d3df98-2" name="rest_code_4e31cbe1138b4d8a985cf701e3d3df98-2" href="https://sgillies.net/2019/02/08/rasterio-1-0-18.html#rest_code_4e31cbe1138b4d8a985cf701e3d3df98-2"&gt;&lt;/a&gt;&lt;span class="gp"&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;pickle&lt;/span&gt;
&lt;a id="rest_code_4e31cbe1138b4d8a985cf701e3d3df98-3" name="rest_code_4e31cbe1138b4d8a985cf701e3d3df98-3" href="https://sgillies.net/2019/02/08/rasterio-1-0-18.html#rest_code_4e31cbe1138b4d8a985cf701e3d3df98-3"&gt;&lt;/a&gt;&lt;span class="gp"&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/span&gt;&lt;span class="n"&gt;pickle&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;CRS&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;from_epsg&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3857&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;a id="rest_code_4e31cbe1138b4d8a985cf701e3d3df98-4" name="rest_code_4e31cbe1138b4d8a985cf701e3d3df98-4" href="https://sgillies.net/2019/02/08/rasterio-1-0-18.html#rest_code_4e31cbe1138b4d8a985cf701e3d3df98-4"&gt;&lt;/a&gt;&lt;span class="go"&gt;b'\x80\x03crasterio.crs\nCRS\nq\x00)\x81q\x01X\xa4\x02\x00\x00PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","3857"]]q\x02b.'&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Update to 1.0.18 as soon as you can and get the benefits of 1.0.14 without the
bugs.&lt;/p&gt;</description><category>gdal</category><category>proj</category><category>python</category><category>rasterio</category><category>spatial reference systems</category><category>work</category><guid>https://sgillies.net/2019/02/08/rasterio-1-0-18.html</guid><pubDate>Sat, 09 Feb 2019 01:01:47 GMT</pubDate></item></channel></rss>