<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: using gzip to uncompress geojson.gz in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-gzip-to-uncompress-geojson-gz/m-p/1109965#M62753</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/89710"&gt;@ShaunWalbridge&lt;/a&gt;, what I meant was that I didn't want to use Python to view and inspect the extracted files.&amp;nbsp; I used 7-zip to extract locally in Windows, but I asked because I thought that gzip could have been used instead to do the same.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 20:50:08 GMT</pubDate>
    <dc:creator>rootsmusic</dc:creator>
    <dc:date>2021-10-21T20:50:08Z</dc:date>
    <item>
      <title>using gzip to uncompress geojson.gz</title>
      <link>https://community.esri.com/t5/python-questions/using-gzip-to-uncompress-geojson-gz/m-p/1097422#M62354</link>
      <description>&lt;P&gt;I downloaded a geojson.gz that I'd like to view and inspect.&amp;nbsp; I have Python installed, but I don't want to use it to read the file.&amp;nbsp; What's the command line to &lt;A title="documentation" href="https://docs.python.org/3/library/gzip.html" target="_blank" rel="noopener"&gt;gzip&lt;/A&gt; it into the same folder?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 15:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-gzip-to-uncompress-geojson-gz/m-p/1097422#M62354</guid>
      <dc:creator>rootsmusic</dc:creator>
      <dc:date>2021-09-11T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: using gzip to uncompress geojson.gz</title>
      <link>https://community.esri.com/t5/python-questions/using-gzip-to-uncompress-geojson-gz/m-p/1109947#M62752</link>
      <description>&lt;P&gt;I'm not sure you want this on the Python forum if you don't want to use Python, but from the command line, if you're working on MacOS or Linux, you can use the command `gunzip`. You'll need to install the same on Windows, or use a tool like 7-zip to extract the content. For future readers who may want to use Python, a solution could look something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import gzip
import shutil

with gzip.open('geojson.gz', 'rb') as gz_in:
    with open('geo.json', 'wb') as json_out:
        shutil.copyfileobj(gz_in, json_out)&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Oct 2021 20:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-gzip-to-uncompress-geojson-gz/m-p/1109947#M62752</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2021-10-21T20:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: using gzip to uncompress geojson.gz</title>
      <link>https://community.esri.com/t5/python-questions/using-gzip-to-uncompress-geojson-gz/m-p/1109965#M62753</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/89710"&gt;@ShaunWalbridge&lt;/a&gt;, what I meant was that I didn't want to use Python to view and inspect the extracted files.&amp;nbsp; I used 7-zip to extract locally in Windows, but I asked because I thought that gzip could have been used instead to do the same.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 20:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-gzip-to-uncompress-geojson-gz/m-p/1109965#M62753</guid>
      <dc:creator>rootsmusic</dc:creator>
      <dc:date>2021-10-21T20:50:08Z</dc:date>
    </item>
  </channel>
</rss>

