<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andrell Bower on Medium]]></title>
        <description><![CDATA[Stories by Andrell Bower on Medium]]></description>
        <link>https://medium.com/@bowera?source=rss-8a2c821fb398------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8I360rRxDCLlqSe1WeoYlA.jpeg</url>
            <title>Stories by Andrell Bower on Medium</title>
            <link>https://medium.com/@bowera?source=rss-8a2c821fb398------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:30:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bowera/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Remembering Arnaud Vedy]]></title>
            <link>https://medium.com/datasd/remembering-arnaud-vedy-e09e687f800?source=rss-8a2c821fb398------2</link>
            <guid isPermaLink="false">https://medium.com/p/e09e687f800</guid>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Andrell Bower]]></dc:creator>
            <pubDate>Wed, 17 Jan 2018 21:26:33 GMT</pubDate>
            <atom:updated>2018-01-17T21:30:00.141Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve paid much attention to smart city or open data or data science in San Diego local government, you probably ran across Arnuad Vedy.</p><p>Arnaud was the City of San Diego’s first data scientist. He joined the Data &amp; Analytics team in October 2016, and right away he was speaking at events, teaching data science and Python at meetups, and spending his free time with community nerds fiddling around with tech gadgets like <a href="https://www.thethingsnetwork.org/docs/">LoRa</a>. And, obviously, solving problems in the City using data and technology.</p><p>One time, he did this:</p><h3>Arnaud Vedy on Twitter</h3><p>NYC on my desk using #Google #ARCore and #pixelphone. #lunchtimeprojects #ar https://t.co/q3ud8TVTxf</p><p>We lost Arnaud in a motorcycle accident in early November. I was not at all prepared for how devastating it is to lose a co-worker, especially one you work closely with and is also a friend. He was smart and talented, but not condescending. I could, and did, ask many dumb questions about Python, GIS, gadgets, France, artisan pizza, and coffee. He answered my questions patiently and never made me feel stupid, or like I was wasting his time. We ate many lunches together, along with our boss Maksim, and chatted a lot about code, and life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-AJFpzMPeU8qgmaly8V2CA.jpeg" /><figcaption>Here is the Data &amp; Analytics team checking out Mission Trails Park. We plan to publish trails and species monitoring data, and we wanted to know a little bit more about the City’s Open Space parks. (L-R: Maksim Pecherskiy, Andrell Bower, Arnaud Vedy)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rHgy9RUGr0ftWs4MvOXbbg.jpeg" /><figcaption>Maksim, left, and Arnaud, right, liked to embark on random, zany adventures together. Here they are about to start a 56-mile bicycle race. Arnaud was already an experienced cyclist, but Maksim hadn’t even really trained. Typical Maksim.</figcaption></figure><p>Data &amp; Analytics is a 3-person team within a larger department of only 13, that we affectionately refer to as PandA (Performance &amp; Analytics). Arnaud’s death was a blow to the entire department, and to people in various other departments who had worked with him, not just the two of us left in Data &amp; Analytics. The City Council even adjourned a meeting in Arnaud’s memory.</p><p>Council member Chris Ward read about Arnaud’s life and his accomplishments with the City. At this point, I was done crying about it all the time, and it made me really happy to hear him remembered and have him memorialized in the official record of the City of San Diego. Well, I was almost done crying at that point.</p><p>Anyway, here’s the clip:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-DNO71PiS1g%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-DNO71PiS1g&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-DNO71PiS1g%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6318031417b5bd406caea52cf6e982da/href">https://medium.com/media/6318031417b5bd406caea52cf6e982da/href</a></iframe><p>We also have this certificate hanging in the hall leading to our wing of the 8th floor of the City Administration Building.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uGVh8ttn0b5vWEA9YcrMzw.jpeg" /><figcaption>San Diego City Council members signed this certificate after they adjourned a meeting in Arnaud’s memory. We have it hanging among various press clippings in the hallway that leads to our area. I’m happy to walk by it every workday and think about my friend for moment. Thanks, Council.</figcaption></figure><p>You’ll see some posts on this blog that I published under my account after his death. He absolutely wanted you guys to learn all kinds of geeky stuff about GIS and data science, so I had to get these out into the world and share a bit of his passion and knowledge.</p><p>We talked all the time about how both of us started off in other disciplines (myself in journalism, him in Geography) and found our way to programming, data analysis, and data visualization. Our code was a little sloppy sometimes, but we were both excited to be doing something that we discovered such a passion for that we had spent our free time teaching ourselves the skills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qci8hbDe_paoDGezkj9_-A.jpeg" /><figcaption>Arnaud shows maps to kids. He was really good at teaching people how to work with data and maps. I learned a ton from him, and I’ve been posting more stuff he wrote on this blog under my account. Maybe one of these kids will grow up to be a map whiz because of this cool map they saw.</figcaption></figure><p>So, if you really want to channel Arnaud, <a href="https://www.teepublic.com/t-shirt/508381-i-just-want-to-drink-coffee-create-stuff-and-sleep">wear this shirt</a>. I proudly display a magnet version of that shirt in my not-at-all-dull cubicle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DQU-HPlCMQDd4z-IiI3H3g.jpeg" /><figcaption>One of my other coworkers bought these magnets because he liked Arnaud’s shirt. I have it here to channel Arnaud when I’m working in my excellent and otherwise inspiring cubicle.</figcaption></figure><p>Even better, build yourself a crazy powerful Linux computer that can handle Lidar data, spend your Saturdays coding, and always make maps with dark backgrounds (just kidding, channel me and put some thought into what your color choices communicate).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e09e687f800" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datasd/remembering-arnaud-vedy-e09e687f800">Remembering Arnaud Vedy</a> was originally published in <a href="https://medium.com/datasd">DataSD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using spatial data and Mapshaper to answer questions]]></title>
            <link>https://medium.com/datasd/using-spatial-data-and-mapshaper-to-answer-questions-6176b4cab1f6?source=rss-8a2c821fb398------2</link>
            <guid isPermaLink="false">https://medium.com/p/6176b4cab1f6</guid>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Andrell Bower]]></dc:creator>
            <pubDate>Mon, 08 Jan 2018 22:51:05 GMT</pubDate>
            <atom:updated>2018-01-17T21:32:34.445Z</atom:updated>
            <content:encoded><![CDATA[<p>Sure, you could simply display spatial data on a map. But you’d be limiting yourself. Spatial data can also help you answer questions about all sorts of topics. To demonstrate it, let’s answer a question with spatial data.</p><h3>The question</h3><p>How many times did someone report a pothole to the City through the Get It Done applications in 2017 for the Downtown area?</p><h3>The tool</h3><p>Although we could use various GIS tools to answer this question, here we are using <a href="http://mapshaper.org/">Mapshaper</a>. Why? Because you will be able to reproduce the workflow without having to install anything, and you’ll be surprised that an online tool can handle this sort of analysis.</p><h3>The steps</h3><ol><li>Download data</li></ol><p>To start with, download the following two datasets from our <a href="https://data.sandiego.gov/">open data portal</a>:</p><ul><li><a href="https://seshat.datasd.org/get_it_done_311/get_it_done_311_requests_datasd.csv">Get It Done requests</a></li><li><a href="http://seshat.datasd.org/sde/cmty_plan/cmty_plan_datasd.zip">Community Planning District boundaries</a></li></ul><p>2. Import data into Mapshaper</p><p>Go to Mapshaper and select/import the Get It Done dataset. First thing’s first, let’s rename the dataset to ‘gid’ for easier processing by opening the console (top-right button) and typing the following command: -rename-layers gid</p><p>At this point, this dataset is not interpreted as spatial data, and all you can see is a grid of points. To solve this issue, we are going to tell Mapshaper which columns of the .csv file contain spatial data by typing the following command into the console: -points x=long y=lat</p><p>If you’re curious about all the commands you can use in Mapshaper, check out this <a href="https://github.com/mbloch/mapshaper/wiki/Command-Reference#-calc">reference</a>.</p><p>3. Filter data</p><p>Two elements of the question we are attempting to answer can be addressed by filtering the Get It Done data:</p><ul><li>‘In 2017’ with the following command: -filter ‘requested_datetime &gt; “2016–12–31” &amp;&amp; requested_datetime &lt; “2018–01–01”’</li><li>‘Requests for potholes’ with the following command: -filter “service_name == ‘Pothole’”</li></ul><p>Now your screen should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1PmqmkiRLk83h8t1sW_Yxw.png" /><figcaption>Mapshaper now shows just pothole service requests made in 2017.</figcaption></figure><p>4. Import more data into Mapshaper</p><p>To answer the last element of the question, ‘in the Downtown area’, we need to perform a spatial join between the neighborhoods from the Community Planning shapefile and the filtered Get It Done data.</p><p>To do so, first import the Community shapefile by clicking on ‘gid’ (top-center), then ‘add a file’, then ‘import’. Rename the layer to ‘neighborhoods’: -rename-layers neighborhoods target=cmty_plan_datasd</p><p>One last thing — reprojection. If you type -info in the console, you will notice that both spatial layers are using different coordinates systems. All you need to do here is to put both layers in the same system with the following command: -proj wgs84</p><p>5. Perform a spatial join</p><p>You are now all set to operate a spatial join between the two layers. With a spatial join, we will end up with a column that contains the neighborhood name from the ‘neighborhoods’ layer for each row of the ‘gid’ layer.</p><p>To perform the join, select the ‘gid’ layer from the layer switcher (top-center), and type the following line: -join neighborhoods fields=‘cpname’</p><p>If you now explore the gid data, you will notice an extra field at the bottom with the neighborhood information for each pothole:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*dXUa9kTbWtOAF-v5De9eWw.png" /><figcaption>Each row, which represents one pothole service request, now has an associated neighborhood name.</figcaption></figure><p>6. Answer the question</p><p>You can now answer the initial question with a last command: -calc ‘count()’ where=“cpname == ‘Downtown’”</p><h3>The findings</h3><p>At the time of this writing, 814 potholes were reported with the Get It Done applications for the downtown area in 2017. Put that in your report or slide deck!</p><p>Do you have more questions? I did.</p><p>What about Uptown (1059), or Golden Hill (194), or La Jolla (725)? What is Uptown, anyway (Mission Hills + Hillcrest?)? Have the number of potholes reported per month citywide gone down (yes! See the table below).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fairtable.com%2Fembed%2Fshre8xjSeRhcIw8Fa&amp;url=https%3A%2F%2Fairtable.com%2Fshre8xjSeRhcIw8Fa&amp;image=https%3A%2F%2Fstatic.airtable.com%2Fimages%2Foembed%2Fairtable.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=airtable" width="800" height="533" frameborder="0" scrolling="no"><a href="https://medium.com/media/3bda8c54ae88fbcb1e7a6a3ea88d0c2a/href">https://medium.com/media/3bda8c54ae88fbcb1e7a6a3ea88d0c2a/href</a></iframe><p>For that last one, I had to run multiple calculations and use requested_datetime in the where clause. There might be a better way to do that, but I don’t know it.</p><p>What I do know, is that spatial data has all the answers.</p><p><a href="https://medium.com/datasd/remembering-arnaud-vedy-e09e687f800"><em>Arnaud Vedy</em></a><em> contributed to this article.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6176b4cab1f6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datasd/using-spatial-data-and-mapshaper-to-answer-questions-6176b4cab1f6">Using spatial data and Mapshaper to answer questions</a> was originally published in <a href="https://medium.com/datasd">DataSD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What to do with GIS files]]></title>
            <link>https://medium.com/datasd/what-to-do-with-gis-files-f974b1b6d498?source=rss-8a2c821fb398------2</link>
            <guid isPermaLink="false">https://medium.com/p/f974b1b6d498</guid>
            <category><![CDATA[gis]]></category>
            <dc:creator><![CDATA[Andrell Bower]]></dc:creator>
            <pubDate>Wed, 03 Jan 2018 00:37:57 GMT</pubDate>
            <atom:updated>2018-01-17T21:32:07.888Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of the spatial data on our <a href="https://data.sandiego.gov/">open data portal</a> is available as a shapefile (.shp) — a GIS vector data format developed by Esri. Unlike tabular data (.csv, .xls, etc.), GIS vector data cannot be opened and analyzed with Excel or any traditional spreadsheet software. So, how should you open these files?</p><h3>The online way</h3><p>The quickest way to open and visualize the content of a shapefile is to use a tool called <a href="http://mapshaper.org/">Mapshaper</a>.</p><p>Simply drag the freshly downloaded .zip file from our portal into the web interface, click ‘Import’ and visualize your data! By clicking on the ‘i’ at the top-right of the interface, you will be able to view the attributes of each feature as you hover it.</p><p>More adventurous / advanced users are encouraged to read the project’s wiki. Indeed, Mapshaper can do way more than open shapefiles. You can join, dissolve, reproject, simplify, and export as well as perform other essential GIS vector operations.</p><h3>The desktop way</h3><p>If you do not mind installing software on your computer, <a href="https://qgis.org/en/site/forusers/download.html">QGIS</a> is the way to go. Thanks to its numerous plugins and toolboxes, this free and open source software (available for Windows / Mac / Linux) will cover most of your GIS needs. Opening one of our shapefiles is as easy as selecting it in the file explorer (left bar). Wondering what to do next, now that you have opened a file? Check out the <a href="https://docs.qgis.org/2.18/en/docs/training_manual/index.html">QGIS training manual</a> and <a href="https://docs.qgis.org/2.18/en/docs/user_manual/">QGIS user guide</a>!</p><h3>The Python way</h3><p>If you are a developer or a data scientist, you are probably dealing with tabular data using Python. When it comes to spatial data, you can take advantage of plenty of Python packages to open, edit, and process shapefiles.</p><p>Here is a non-exhaustive list of packages:</p><ul><li><a href="https://pypi.python.org/pypi/pyshp">pyshp</a></li><li><a href="http://www.gdal.org/">GDAL</a></li><li><a href="https://pypi.python.org/pypi/Shapely">Shapely</a></li><li><a href="https://pypi.python.org/pypi/Fiona">Fiona</a></li><li><a href="http://geopandas.org/">GeoPandas</a></li></ul><p><em>This article was originally written by </em><a href="https://medium.com/datasd/remembering-arnaud-vedy-e09e687f800"><em>Arnaud Vedy</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f974b1b6d498" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datasd/what-to-do-with-gis-files-f974b1b6d498">What to do with GIS files</a> was originally published in <a href="https://medium.com/datasd">DataSD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Geo data: up-to-date and in multiple formats]]></title>
            <link>https://medium.com/datasd/our-geo-data-has-become-more-relevant-city-of-san-diego-open-data-portal-8cf8f9d2d65e?source=rss-8a2c821fb398------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cf8f9d2d65e</guid>
            <category><![CDATA[open-data]]></category>
            <dc:creator><![CDATA[Andrell Bower]]></dc:creator>
            <pubDate>Thu, 30 Nov 2017 18:17:55 GMT</pubDate>
            <atom:updated>2018-01-17T21:33:07.714Z</atom:updated>
            <content:encoded><![CDATA[<p>Dear readers / followers, we have some exciting news! Our geographic data is now integrated with <a href="https://data.sandiego.gov/stories/why-data-automation-matters-data-portals/">Poseidon</a>, our data automation system.</p><h3>Current geo data</h3><p>It means you now have access to the most current geographic data at all times. Some data sources are updated every month. For others, this process occurs on a daily basis. No matter the schedule of the dataset, our portal will now automatically update along with it. This ensures that as a user of the portal, you will be retrieving the most up-to-date data available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*clF9o_oConb0KbwU.jpg" /></figure><h3>New formats</h3><p>Until recently, we were sharing geo data exclusively as shapefiles — one of the most commonly used format for geo data. Nevertheless, there are a few reasons why it should not be the only format of geo data offered on an open data portal:</p><ul><li>It is not an open standard format.</li><li>It is actually multiple files. These files need to be zipped, making it inconvenient to share.</li><li>It is not a practical format for web developers. Few web mapping javascript libraries support shapefiles natively, which usually leads to data conversion.</li><li>It is not the most practical format for non-technical users. It requires software installation to be visualized / used for data analysis.</li></ul><p>For these reasons, we have decided to provide you with additional geo data formats. For now (and we will be adding more) they are: GeoJSON, TopoJSON, and Geobuf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BkVoQPWEMyZR9GwQ.png" /></figure><ul><li><strong>GeoJSON</strong>: This is the most common alternative to shapefiles. <a href="http://geojson.org/">GeoJSON</a> is an open standard format based on the JSON specification. It is supported by most desktop and web based mapping/GIS solutions. Geo data in this format is also human-readable. This means it can be opened with a text editor, which make it very easy to use. The only drawback with GeoJSON when compared to shapefile is size. This is a consequence of GeoJSON’s lack of topology support.</li><li><strong>TopoJSON</strong>: This <a href="https://github.com/topojson/topojson">format</a> is an extension of GeoJSON that encodes topology. As a result, TopoJSON files that contain line and polygon geometries are significantly smaller than both GeoJSON and shapefiles.</li><li><strong>Geobuf</strong>: <a href="https://github.com/mapbox/geobuf">Geobuf</a> is a relatively new format introduced by Mapbox. Geobuf provides lossless compression of GeoJSON data into <a href="https://developers.google.com/protocol-buffers/">protocol buffers</a>. It is fast to decode and very light, making it attractive for developers who want to use large geo datasets in their web applications. Here is a comparative table to demonstrate the compression power of the Geobuf specification on our data:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jjhwBGEdYgewFZCX.png" /></figure><p>So, you now have access to the most current geo data in multiple formats and we are pretty excited about it. What will you do with it? Let us know at <a href="https://data.sandiego.gov/stories/gis-update/data@sandiego.gov">data@sandiego.gov</a> and stay tuned for more announcements!</p><p><em>Originally written by </em><a href="https://medium.com/datasd/remembering-arnaud-vedy-e09e687f800"><em>Arnaud Vedy</em></a><em> and published at </em><a href="https://data.sandiego.gov/stories/gis-update/"><em>https://data.sandiego.gov</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cf8f9d2d65e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datasd/our-geo-data-has-become-more-relevant-city-of-san-diego-open-data-portal-8cf8f9d2d65e">Geo data: up-to-date and in multiple formats</a> was originally published in <a href="https://medium.com/datasd">DataSD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A better open data portal]]></title>
            <link>https://medium.com/datasd/a-better-open-data-portal-city-of-san-diego-open-data-portal-ccc450e76872?source=rss-8a2c821fb398------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccc450e76872</guid>
            <category><![CDATA[open-data]]></category>
            <dc:creator><![CDATA[Andrell Bower]]></dc:creator>
            <pubDate>Thu, 30 Nov 2017 18:13:10 GMT</pubDate>
            <atom:updated>2018-03-13T17:33:46.461Z</atom:updated>
            <content:encoded><![CDATA[<p>We are excited — and somewhat exhausted — to present to San Diegans a new and improved Open Data portal today.</p><p>The portal has a fresh look, but more importantly, we rebuilt the technology behind the portal and upgraded our workflow for keeping data up-to-date.</p><h3>Just yesterday</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/0*xi--XxpZtHxT5y4-.jpg" /></figure><p>We initially launched our data portal by buying a ready-made portal product from a company. As our team was newer, this made a lot of sense, and the portal the vendor made for us was exactly what we needed at that time.</p><p>But we’ve always had a long-term vision for open data that relied on high-tech strategies. We never wanted to publish data that was manually updated. We want City employees to spend their time using data to serve residents, not trying to remember to update data on an open data portal. We also want our data to be put to use helping the City perform better. This means the data needs to be accessible not only for simple downloads, but also for alerting, prediction, and other advanced analytics.</p><p>Ready-made portal products are more geared toward a manual update process, so when we started working to automate data updates late last year, our automation solution didn’t work as well with our portal product as we had hoped.</p><p>Normally, a client uploads a dataset to its cloud, and then that dataset is available for download, for preview in the browser, and through its data API.</p><p>But we were not hosting our data in the cloud service our portal provider offered. We uploaded to a different cloud service and then linked the files to the portal. Not using a direct upload limited our ability to show a preview in the browser or make the data API available without manual intervention. We also couldn’t trigger a change in the extremely important metadata field of “Date Updated” without a manual upload.</p><p>Although a ready-made portal product is convenient, it is also expensive. Adding functionality and features as we sought continuous improvement in our program would end up costing taxpayers money that could be better spent.</p><p>Taking all of these factors together, we decided to take San Diego’s open data program to another level and build a portal ourselves. We have a team with the technical expertise to run our own data portal, so we went for it!</p><h3>Today</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/0*g_Kf4kFiYoDYYeTQ.jpg" /></figure><p>At a minimum, a data portal is just a website. All it really needs is a page with a list of datasets (the catalog) and individual pages for each dataset that contain links to download the data. A ready-made portal product is a website with an admin interface that makes it easy for just about anybody to manually update data.</p><p>The reality is that some open data programs do depend on employees to upload data manually. This is because open data became a thing long after government and technology were invented. In fact, doing open data well is very, very, very complex (did we say very?). Not all departments and divisions of a government use the same database technology. Government information is housed in hundreds of different systems or even on spreadsheets in shared drives. Some data even comes from third-parties that are contracted to provide services on behalf of a government, and therefore maintain data on their own servers.</p><p>Our team spent a significant amount of time writing code to build our automation process that pulls in data from our City’s various systems, transforms it, and puts it into the our cloud. We could have probably scripted a solution that would copy files from our cloud to the portal cloud. But it would have taken some work, and the effort would be hampered by the fact that we don’t have control over a product made by an outside company. As they upgraded their product, our script might have broken over, and over again.</p><p>A portal we created that worked perfectly with our automation process was the obvious solution. However, we can’t take ALL the credit for this new portal. We based our new portal on an open-source project by <a href="http://github.com/timwis">Tim Wisniewski</a>, Chief Data Officer for the City of Philadelphia. The open-source portal he created, called <a href="https://github.com/timwis/jkan">JKAN</a>, was instrumental in getting us up and running with our own version. (Thanks, Tim!!!)</p><h3>Tomorrow+</h3><p>Moving forward, this data portal is the new hub for all open data and analytics projects for the Performance &amp; Analytics Department. We used to maintain a separate informational site, datasd.org, that we no longer need since we have full control over this one. Keep checking back for the latest news, how-tos, data stories, visualizations, and of course, the most up-to-date City data.</p><p>If you are intrigued by the work we’ve done, our portal is also open-source! <a href="https://github.com/cityofsandiego/seaboard">Check out our code</a>, copy it, and make your own data portal, aka website with a catalog. We use <a href="https://jekyllrb.com/docs/home/">Jekyll</a>, a static site generator, to manage all the files and pages of our portal.</p><p>You also need to check out our <a href="https://github.com/mrmaksimize/docker-airflow">automation process</a>. We are using <a href="https://github.com/apache/incubator-airflow">Airflow</a>, another open-source tool, originally developed to improve workflow for employees of companies that crunch data.</p><p>Basically, each little task that we need to complete when we extract and transform data is handled with bits of Python code. Examples of these tasks include connecting to a database, pulling a file from one of the City’s shared drives, detecting the current date and using that to grab the correct time interval of data, etc.</p><p>Airflow keeps all these bits organized into a hierarchy of jobs, and we get alerts if anything fails. We can also use Airflow to schedule automatic kick-off of jobs, which is one of the major headaches of automation. Keep an eye on this blog for more in-depth and technical explanations of how we are using Airflow.</p><p>If you are a person who was using the data API from our previous portal, you will instead have to work with the link to the csv. We also had to change how we stored data in our cloud, so please plan on updating any previous links to csv files by the end of March. You can get updated links by checking the dataset pages on this new portal.</p><p>We hope you love this new portal, and we especially hope you love having automatically updated data! Let us know what you think.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccc450e76872" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datasd/a-better-open-data-portal-city-of-san-diego-open-data-portal-ccc450e76872">A better open data portal</a> was originally published in <a href="https://medium.com/datasd">DataSD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The building blocks of an Open Data portal]]></title>
            <link>https://medium.com/datasd/the-building-blocks-of-an-open-data-portal-3a7eeeaec3c7?source=rss-8a2c821fb398------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a7eeeaec3c7</guid>
            <category><![CDATA[open-data]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[static-site]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Andrell Bower]]></dc:creator>
            <pubDate>Mon, 05 Jun 2017 19:46:06 GMT</pubDate>
            <atom:updated>2017-06-05T19:46:06.446Z</atom:updated>
            <content:encoded><![CDATA[<p>When I wrote about <a href="https://data.sandiego.gov/stories/portal-refresh/">how we launched a homemade Open Data portal</a>, I made the claim that a data portal is just a website with a catalog of datasets.</p><p>A few companies sell expensive portal products to governments. These companies take care of hosting the datasets and running that website I’m referring to, where people visit to download the data. Some of these portals also give users limited ability to search, filter, and chart data without downloading it.</p><p>We wanted to have more control over our portal. We had ideas for how it should look and how it should work. Some of these ideas are included in a <a href="http://datasmart.ash.harvard.edu/news/article/an-open-letter-to-the-open-data-community-988">piece of guidance the Civic Analytics Network wrote</a> for Open Data programs.</p><p>We could also save the City of San Diego money, so we figured we would make our own website and find a place to host our datasets. We used a bunch of tools to make accomplishing these simple objectives even easier. What follows is an overview of those tools.</p><h3>Github: Stores our code, allows us to collaborate</h3><p>Our team of three collaborated on content and code for the portal. Our codebase lives in this <a href="https://github.com/cityofsandiego/seaboard">Github repo</a>. Team members can pull down the code, add to it and change it, then submit the changes where the whole team can review and incorporate them.</p><p>When we push to certain Github branches, we trigger <a href="http://circleci.com/">Circle CI</a> to deploy a new copy of the site to either staging or production. We use the staging site for internal review, for example when we have a new dataset to publish and need to run it by someone in the owning City department. Once we have production-ready code, that goes live on our server.</p><h3>Jekyll: static site builder</h3><p><a href="http://jekyllrb.com/">Jekyll</a> is a major tool we use to create the website. With Jekyll, we can put content into a mix of different file types — HTML, Markdown, YAML — and easily compile them all into a static website. We don’t require a database backing up our site, and we don’t have to have a <a href="https://en.wikipedia.org/wiki/Content_management_system">Content Management System</a> like WordPress.</p><h3>Circle CI: Deploys our code</h3><p><a href="http://circleci.com/">Circle CI</a> makes deployment simpler and reduces potential for human error. Circle CI deploys to Amazon S3. Depending upon which Github branch we push to, Circle CI can figure out whether to deploy to our staging site or our production site.</p><h3>Amazon S3: Hosts our content</h3><p><a href="https://aws.amazon.com/s3/">Amazon S3</a> hosts our portal in two buckets: 1. The bucket for our static site files, and 2. The bucket for our dataset files. This way, each dataset has its own url that developers can build applications off of, knowing that the data will always be updated there and it won’t suddenly become unavailable if the City’s network or the portal go down for some reason.</p><h3>Cloudfront: Serves our static site</h3><p>Amazon’s <a href="http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html">Cloudfront</a> distributes our static site content to each of multiple servers across the world, also known as Edges. So, when a user visits our portal from China, for example, she is routed to a server closest to her, making the portal experience faster.</p><h3>Lambda &amp; Polymer: Create data previews</h3><p>Our datasets are updated often, some daily. But we needed a way to provide a fresh preview of the data each time a user visits a dataset page. We also didn’t want to load the entirety of a large dataset onto the page, because that would be slow.</p><p>Our solution was to use a <a href="https://www.webcomponents.org/">Polymer component</a> built into the template of our dataset pages. It makes a request with the URL of the dataset as a parameter. A <a href="https://aws.amazon.com/lambda/">Lambda function</a> picks the request up, goes to S3, streams the first 10 rows and returns them as JSON. Then the Polymer component displays the resulting JSON.</p><h3>Keen: Monitors data updates and tracks portal usage</h3><p>Lambda makes another appearance here. We have a function that checks log files in our Amazon buckets and sends information to <a href="https://keen.io/">Keen.io</a>. We then use Keen to track specific events of interest taken out of the log information, like when a dataset is uploaded, or when someone visits a page on the portal.</p><p>We use Keen’s API to put metrics for daily dataset updates on the portal homepage. But that’s just the beginning.</p><p>We offer this overview because we want you to be able to copy our work. Open source code is important to us — after all, our work IS taxpayer funded. Please, visit our <a href="https://github.com/cityofsandiego/seaboard">Github repo</a> where you can copy our data portal and use it as a basis for your own. But know that copying those files is only part of the work involved. Knowledge of the extra tools and processes will help you get the job done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a7eeeaec3c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datasd/the-building-blocks-of-an-open-data-portal-3a7eeeaec3c7">The building blocks of an Open Data portal</a> was originally published in <a href="https://medium.com/datasd">DataSD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Our automated Open Data Portal earns a nod from Amazon innovation contest]]></title>
            <link>https://medium.com/datasd/our-automated-open-data-portal-earns-a-nod-from-amazon-innovation-contest-b35231e71eeb?source=rss-8a2c821fb398------2</link>
            <guid isPermaLink="false">https://medium.com/p/b35231e71eeb</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[innovation-in-government]]></category>
            <category><![CDATA[open-data]]></category>
            <dc:creator><![CDATA[Andrell Bower]]></dc:creator>
            <pubDate>Fri, 02 Jun 2017 22:44:47 GMT</pubDate>
            <atom:updated>2017-06-02T22:45:12.463Z</atom:updated>
            <content:encoded><![CDATA[<p>Our work to <a href="http://performer-hare-68626.netlify.com/stories/why-data-automation-matters-data-portals/">automate data updates</a> won us a spot with <a href="https://aws.amazon.com/blogs/publicsector/tag/city-on-a-cloud-innovation-challenge/">16 other finalists</a> in Amazon’s <a href="https://aws.amazon.com/blogs/publicsector/aws-launches-the-fourth-city-on-a-cloud-innovation-challenge-opens-contest-to-schools/">City on a Cloud Innovation Challenge</a>.</p><p>Finalists, announced earlier this week, include other governments and schools that are competing in the Best Practices category. This category honors a completed project that focuses on a citizen service, uses Amazon web services, and employs an innovative solution that other public entities might be able to use.</p><p>The winner will be announced in two weeks and receive credits toward Amazon Web Services (AWS).</p><p>AWS is crucial to our Data &amp; Analytics program. <a href="https://aws.amazon.com/s3/">S3</a> hosts our data files as well as the custom <a href="https://data.sandiego.gov/stories/portal-refresh/">Open Data Portal we built</a>. <a href="https://aws.amazon.com/lambda/">Lambda</a> helps us display dataset previews on the portal and stream metrics on portal usage and dataset downloads into our monitoring tool <a href="https://keen.io/">Keen</a>. <a href="https://aws.amazon.com/rds/">RDS</a> allows us to capture real-time data for analytics projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b35231e71eeb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datasd/our-automated-open-data-portal-earns-a-nod-from-amazon-innovation-contest-b35231e71eeb">Our automated Open Data Portal earns a nod from Amazon innovation contest</a> was originally published in <a href="https://medium.com/datasd">DataSD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ekology: A new way to experience San Diego]]></title>
            <link>https://medium.com/datasd/ekology-a-new-way-to-experience-san-diego-74fb7094ae0e?source=rss-8a2c821fb398------2</link>
            <guid isPermaLink="false">https://medium.com/p/74fb7094ae0e</guid>
            <category><![CDATA[san-diego]]></category>
            <category><![CDATA[government]]></category>
            <category><![CDATA[ekology]]></category>
            <category><![CDATA[open-data]]></category>
            <category><![CDATA[events]]></category>
            <dc:creator><![CDATA[Andrell Bower]]></dc:creator>
            <pubDate>Mon, 12 Sep 2016 16:35:42 GMT</pubDate>
            <atom:updated>2016-09-12T21:37:40.081Z</atom:updated>
            <content:encoded><![CDATA[<p>It was a Saturday evening when Tyler Long was scrolling through his Facebook feed, and it happened. He realized he had missed the <a href="http://bit.ly/1iQSE98">OB Street Fair and Chili Cook-Off</a>. The disappointment of missing one of his favorite San Diego festivals gave him an idea: San Diegans need a better way to stay up-to-date with all of the incredible events that happen here.</p><p>“It’s really difficult to stay in-the-know,” said Long, 27. “Information about events is scattered across so many different websites, and you can never be sure if you’ve seen everything that pertains to your interests.”</p><p>Enter his solution: <a href="http://ekologyapp.com/">Ekology</a>, a mobile app that eases the process of event discovery for San Diegans and those visiting San Diego.</p><p>“All a user has to do is download the app and select a few things they’re personally interested in. Then they’re presented with a feed of events specifically tailored to those interests,” Long said.</p><p>When you see something you’re interested in, tap the ‘like’ button. The event will then sync to the calendar on your phone and be added to a personal list of events you’ve ‘liked’ within the app. If anything changes about the event, Ekology will notify you of the changes.</p><p>Ekology pulls information from multiple sources, including Facebook, Eventbrite, neighborhood websites, <a href="http://sandiego.org/">sandiego.org</a> and, most importantly for us, the special events calendar the City of San Diego publishes.</p><p>When an organization or event host applies for a Special Event Permit from the City, information from that application gets entered into a special events database. A permit is required for any event that incorporates City property, including sidewalks, streets, right-of-way, parks and other public properties. The City used to publish this calendar only as a set of PDFs on its website, <a href="http://sandiego.gov/">sandiego.gov</a>.</p><p>But the recent launch of an <a href="http://data.sandiego.gov/">Open Data Portal</a> will save Long and his team hours they have been spending each week working with the PDFs. The portal offers machine-readable datasets that are openly licensed, and one of those datasets is Special Events.</p><p>An app like this is an example of how Open Data can help the City’s economy. Developers can use government data to build apps. And in Ekology’s case, local merchants win because more people will attend events.</p><p>“By having event information in one place, we think that we can help event organizers drive attendance while Ekology grows its user-base in San Diego,” said Long. “But our top priority is to help residents and visitors feel engaged in the local community and have memorable, fun experiences.”</p><p>A California State University San Marcos graduate, Long made a career change in February when he left his job at Solar Turbines to work full-time on Ekology. His background is in analytics, so he focuses on the data science and content-gathering aspects of the app. He uses data-mining tools that are able to comb through websites and identify events that will ultimately be posted on Ekology.</p><p>The next logical step for the app is to add more cities. According to Long, San Francisco is next on the list.</p><p>“We strive to be the go-to technology for social event discovery in every major U.S. city,” Long said. “Just give us a few years to work that out.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74fb7094ae0e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datasd/ekology-a-new-way-to-experience-san-diego-74fb7094ae0e">Ekology: A new way to experience San Diego</a> was originally published in <a href="https://medium.com/datasd">DataSD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>