Quantcast
Channel: CARTO Blog
Viewing all 820 articles
Browse latest View live

Unlimited map views start today!

$
0
0

Over recent years, mapping services have been busy counting and charging for map views. We believe that charging for map views is actually penalizing users for doing great things with their work. In order to change the trend, we are going to take a different tack, and promote the usage of maps, not discourage them. That is why we are no longer charging for map views. Yep, you read that right: free and unlimited map views for all CartoDB accounts. CartoDB exists so that you can make the most useful and inspiring visualizations on the web, so we figured it’s best that we stay out of your way.

Yep, you read that right: free and unlimited map views for all CartoDB accounts.


Share on Twitter

You may have seen the unlimited update in your dashboard (or lack-thereof, as there is no longer a map view quota calculator). From now on you’ll notice a map view counter instead. See what we did there? Words of encouragement equal positive reinforcement vibes– and hopefully more press for your projects.

We see this account change as having a huge impact on students, non-profits, and small businesses, all eager to make popular maps but weary of being charged for their success. While we’ve paid special attention to the particular needs of these types of users with free account packages and start-up grants, we see this introduction of unlimited map views and the map view counter as an exciting opportunity to gear the CartoDB platform for optimal social media sharing performance.

Oh, did we mention journalists? One of our favorite communities can now ride the wave of user engagement without the stress of unpredictable billing. If you are a journalist thinking of using CartoDB, take a scroll through a selection of existing projects done with the platform already.

Ready, set, map! We hope to see your tweets keep up with your CartoDB counters. Here’s to no limits for all.

Happy mapping!


Welcome Vanessa Hamer

$
0
0

Vanessa Hamer

Say hello to our new Operations and Marketplace Director at the NYC office Vanessa Hamer!

Vanessa is a southern charmer from North Carolina with an itch for travel and adventure. Her interest in visualizing and mapping comes from her background in environmental science and sustainability and her firm belief that information is meant to be shared.

Before CartoDB, Vanessa managed operations for a city planning non-profit and a software startup, and she spent this past summer traveling the world. Her journey took Vanessa across 7 different countries, including Thailand and Guatemala, as well as 10 different US States!

Vanessa’s first experience with maps was planning family road trips as a kid, using colored pencils to trace the routes on large paper Michelin maps. She’s really bad at properly folding paper maps, though. Her excitement for making information and analysis tools more widely accessible is what brought her to CartoDB. She hopes to use our Developer Program and upcoming Marketplace as a launchpad that helps get as many people as possible making and using maps!

Welcome Vanessa!

CartoDB at the World Parks Conference

$
0
0

Mapping has always been a tool for studying environmental change and enabling protection on all levels. Here at CartoDB, we want to share our commitment to IUCN’s efforts to protecting and conserving our natural ecosystems across the world by bringing to the table powerful and easy to use mapping tools.

This years congress brings together thousands of people from all across the world in a collaborative effort built on the theme “Parks, people, planet: inspiring solutions”. International professionals and companies (including CartDB) will present, discuss and create original approaches for conservation and development, helping to address the gap in the conservation and sustainable development agenda.

Our Commitment to a Better Tomorrow

With our roots coming from a passion for visualizing environmental information, CartoDB seeks to provide opportunities for environmental professionals, as well as easily accessible mapping tools to bring the power of maps and visualization to the forefront of conservation and environmental efforts. With groups like Global Forest Watch and Protected Planet already tapping into the power of CartoDB, we are excited to see what the future holds for mapping and the environment!

If you are attending the congress, be on the look out for Michelle Esteva, this year’s representative from the CartoDB family. Michelle is not only an expert in CartoDB, but an expert in open spaces and planning issues more broadly. Michelle works closely with our grants and our educational offerings. Be sure to check out her talk on Thursday at 1:30 or stop by her table in the pavilion.

Michelle Esteva

We are always excited to meet new people and talk about mapping!

Read more about the conference here and of course, happy mapping!

Remembering The Berlin Wall Interactive Story Map!

$
0
0

November 9th was the 25th anniversary of the Berlin Wall coming down, and to commemorate the anniversary of this monumental event, we have created a beautiful interactive map story using our easy to use story telling tool Odyssey.js and CartoDB!

Take a minute and look the map above. Then read below to hear some of the tricks we used to make it.

Telling Stories Through Maps

Odyssey.js is a tool we created for journalists and story tellers to easily build interactive map stories without the need for hard coding skills. If you haven’t heard of Odyssey.js before, take a moment to read about how this tool can be used.

Using CartoDB layers in Odyssey.js

One of the key elements in our Berlin Wall story above is the use of multiple layers and thematic styles. We did this by first designing our map in CartoDB. Learn how to quickly bring in your CartoDB maps and custom base maps to tell your story using the Odyssey sandbox.

Using conditional styling in Odyssey.js

It is easy to change the content of your story map by using conditional zoom visualizations in the CartoDB CSS interface. Here is a snippet from the Berlin Map we shared above:

line-opacity:1;[zoom=17]{polygon-fill:#F11810;polygon-opacity:0.4;}[zoom=15]{polygon-fill:grey;polygon-opacity:0.4;}[zoom=10]{polygon-fill:grey;line-color:#808080;}

This code changes the visualization at zoom level 17, 15, and 10 to represent the parameters identified below the [zoom = ] section.

When you bring your CartoDB map into Odyssey.js, those conditions remain on your map and make it easy to change the appearance of your map by simply moving the zoom and assigning a story panel. You can play around with all sorts of conditional CartoCSS parameters and be sure to share your awesome creations with us on Twitter @cartoDB or add it to your favorite pinterest map board with the @CartoDB tag.

Oh! Speaking of pinterest, be sure to check out the regularly updated Geo Data Stories, Cartographic Design and CartoDB boards for cool maps, tutorials, and general CaroDB mapping goodness.

Mauerfall on Twitter

One last thing to leave you with, check out this map of Geotagged tweets mentioning the fall of the Berlin Wall Celebration and key hashtags by Mauerfall published by Twitter:

Happy Mapping!

Welcome Logan Winston

$
0
0

Logan Winston

A big howdy to Logan Winston, our new Account Manager based in New York City!

Logan’s interest in mapping goes way back: when he was growing up his home had a number of antique maps. But don’t let his mild-mannered front fool you, because Logan’s adventures range from surveying in disaster zones to forest firefighting.

During his Master’s in Urban Planning at the University of Michigan, Logan become interested in renewable energy. He hopped around the American West working on wind energy development projects, and in the process found a love of GIS.

His GIS consulting work led to business development in the solar power industry. A constant learner, Logan is currently pursuing both a GIS certificate and an MBA, and he’s thrilled to have returned to New York, “a place where you don’t have to go far to touch the world.”

When asked what brings him to CartoDB, Logan says CartoDB offers “talented people, a great mission, and a beautiful product.”

Logan is looking forward to helping our customers get more out of the CartoDB platform, and we’re really excited to have him join our team.

Interested in joining the CartDB team? We’re hiring.

EcoHack World @ CartoDB: November 16th

$
0
0

EcoHack

Creating visualizations to help save the planet.

Here at CartoDB, we take pride in doing our part to make the planet a better place. Growing environmental issues need our attention, and as part of EcoHack World, CartoDB has teamed up with designers, developers, and scientists this Sunday, November 16th to bring awareness to our world through beautiful visualizations.

EcoHack World consists of nearly 50 consecutive hours of environmental hacking, starting in Sydney, and making stops in Nairobi, New York City, Madrid, Cambridge, and Washington D.C. before finishing in San Francisco. The goal of the hackathon is to create technology to better understand the natural environment we live in.

Stay tuned throughout the day to see what we come up with!

To get involved, go to: www.ecohack.org.

Interested in telling your own stories? Sign up for a free account with CartoDB.

Inspiring solutions: Ecohack World @ CartoDB (Part II)

$
0
0

Leveraging Tech to Raise Conservation Awareness: 12 hours later.

Interested Citizens and CartoDB Team EcoHack Conservation: Map Travel Behaviors of Seals, Porpoises, Turtles, and Dolphins.

Today started with a group of inspired technologists and CartoDB staff getting together to discuss conservation efforts and exploring opportunities to communicate, understand and defend protected areas. After some coffee, bagels and digging around for interesting conservation data sets, the team agreed to study a dataset from Wheelock College’s WhaleNet program, a source for real-time satellite tracking data from seals, porpoises, turtles and dolphins.

Our first steps consisted of obtaining data sets for unique mammals from WhaleNet. This meant copying and pasting historic satellite coordinates for each animal into a comma separated value (CSV) format and then uploading those tables into CartoDB data tables. As a side-note, it might be interesting to create a public API so that folks from around the world can write programs and build applications based on real-time data feeds from the amazing WhaleNet data.

Our first CartoDB table consisted of every logged geographic coordinate for each mammal. There were some interesting moments, like when we realized that there was a data point from seal near Albany, New York (i.e., verrrry inland!). Turned out that there had indeed been a seal siting 55 miles up the Hudson River!! Once we cleaned the data, we performed a SQL query (ST_MakeLine) to chronologically connect data points for each unique animal. Our third principal layer consisted of duplicating our original geographic coordinate table and turning on CartoDB’s Torque function to demonstrate the chronology.

After entering the data into CartoDB we wanted to enhance the user experience of the visualization - this meant allowing users to view the data at the aggregate level (all of the animals) and navigate into the database to understand the travel behaviors of unique species. In order to build out this functionality we leveraged JavaScript and SQL to call the correct information. Once the user accesses a specific species from the database she can then view pictures of the unique mammals using User Interface dots.

The WhaleNet platform was built to support learning across many fields and enhance general interest in science, creating opportunities for exciting interactions between students, teachers, researchers. The visualization allows users to understand the behaviors of important aquatic species as they travel around the world. We hope our efforts help advance science and conservation and demonstrate the impact of the WhaleNet project!

Want to follow some dolphins, turtles and seals around the world? check out our #ecohack app!

Share on Twitter

WhaleNet is sponsored by Wheelock College and the Massachusetts Environmental Trust, with initial funding from the National Science Foundation. CartoDB is grateful to these organizations for making such an important and interesting set of data available - we enjoyed hacking on it!!

CartoDB also really appreciated the talents of Robbie Kraft and Mariko Kosaka who were instrumental in the success of EcoHacks NY 2014!

Interested in telling your own stories? Sign up for a free account with CartoDB.

Educator's Night at CartoDB

$
0
0

Educator's Night

Nothing feels better than when someone tells us they are using CartoDB in the classroom. That’s why we have worked hard to make teaching with CartoDB easier and more intuitive by creating educational resources that help educators get right to the exciting stuff. To top it all off, we are throwing our first ever Educator’s Night in NYC this week!

Maps in the classroom are exciting right now. Like never before, people from all professions and university departments are making use of mapping technologies to help teach everything from history to business management. While this is very exciting, it also means that there is a lot to learn about the use-cases, needs, and challenges faced by our community of educators.

Educator’s Night is meant specifically for people who are teaching or hope to teach with CartoDB in the classroom. It will be a two way discussion, helping us learn what we can do better, while helping educators connect and learn how other people in the community are using maps. We’ll hear some talks about mapping in the classroom from seasoned CartoDB educators and university professors Amanda Bee and Daniel Goddemeyer; then wrap it up with an open format Q&A and discussion session.

If you are interested in how to use our tools in the classroom or if you are already using them and want to connect with the rest of the community, please join us Thursday, November 20th at 7pm.

Happy mapping!


New Academy Course: SQL and PostGIS in CartoDB

$
0
0

SQL and PostGIS in CartoDB

Happy GIS Day! To celebrate, CartoDB is initiating a new course on SQL and PostGIS.

Lesson One of SQL and PostGIS in CartoDB is now live at CartoDB Academy! There you are introduced to basic SQL and PostGIS by using the CartoDB interface to discover how to slice and dice geospatial data. And by using PostGIS, you not only celebrate GIS Day, you boost your powers in CartoDB!

Follow our Twitter and this blog for announcements about more SQL/PostGIS courses and more Map Academy news.

Have needs or a great idea for future lessons? Drop us a line at support@cartodb.com. Want to contribute? Fork our repo!

CartoDB announces its visualization solutions for Smart Cities

$
0
0

Smart Cities Dashboards by CartoDB

These past few days the Smart Cities Expo was taking place in Barcelona. CartoDB was at the CitiSense Conference and also presenting its mapping platform for Smart Cities Dashboards, with New York City and Barcelona as our first case studies.

Visualizing data is key to analyzing and understanding what is happening in a city. It helps generate insights and enhances our ability to make to make informed decisions. From monitoring the inventory of public resources to geospatial analysis of real-time sensor data, CartoDB helps cities to visualize and communicate everything transpiring in the city.

Providing easy integration with most existing data sources and third-party smart city platforms, CartoDB is a flexible and robust visualization tool enabling cloud and on-premises implementations to meet the demanding requirements of IT teams in leading cities. The CartoDB Platform and APIs were developed and brought to life for the web, facilitating easy, fast, and powerful integrations.

New York City uses CartoDB mapping tools to create its Smart City Dashboard

CartoDB is being used in cities like New York and Barcelona to power situation rooms and enable real-time dashboards, offering a simple and direct solution to facilitate trend analysis and detect deviance in the key performance indicators of city, as well as to implement geospatial alerts, sensor control, and inventory management. City dashboards built on top of CartoDB will work natively on desktops and mobiles, allowing for seamless access from any device used by local officials.

Other cities such as Monterrey and Melbourne are using CartoDB to deploy cost-efficient geo-portals which enable citizens to browse the city’s open-data. With rules and regulations now in place making it mandatory to make public information accessible for citizens to consume, it is imperative to make proper use of the visualization tools at our disposal to make sense of all that data. CartoDB meets all these demands and provides a cost-efficient platform to build and deploy geoportals.

If you are interested in mapping solutions for your Smart City, reach us at sales@cartodb.com

New Map Series: Less Is More

$
0
0

Less Is More

In the big, complex world of mapping data, it’s often easy to forget the significant impact that simple and elegant visualizations can have. For this reason, we are proud to announce our new map series Less Is More! Our new series brings together strikingly simple map designs that tell big, impactful stories. Click here to check out the series!

While of course, we at CartoDB love complex data visualization as much as the next mapper, we feel it’s important to sometimes take a step back, kick off your shoes, and remember that simple designs are often the most powerful - just look at this Map of the US as drawn by the expansion of Walmart!

As you may have noticed in the past months we at CartoDB have been working hard to bring you state-of-the-art mapping resources and tools such as unimited map views, really cool new basemaps, and ever expanding lessons at our CartoDB Academy. We are always excited to see how our mapping community is using our tools to bring their maps to the next level, so be sure to share your creations with us on Twitter, tag your striking Less Is More visualizations, and stay tuned for more maps to come!

Happy Mapping!

Why we use Markdown for almost everything

$
0
0

If you’re following our repositories or you are using Odyssey.js you will have discovered that we’ve been using markdown a lot during the last few months.

The Markdown language was created in 2004 by John Gruber, with substantial contributions from Aaron Swartz. Its goal is to allow people “to write using an easy-to-read, easy-to-write plain text format, and optionally convert it to structurally valid XHTML (or HTML).” Because Markdown text files are plain text, you can use almost any text editor to open them.

Markdown allows you to write using an easy-to-read, easy-to-write plain text format.

Share on Twitter

Why did we choose Markdown initially, and why do we use it increasingly more each day?

  • It’s easy

    The syntax is really simple. If you know how to compose a hashtag or make an emoticon, you can use Markdown.

  • It’s fast

    The simple format saves a significant amount of time when thinking about formatting and aesthetics. With Markdown you can focus on the content, not on the shape. It speeds up the workflow of everything, from development to management tasks.

  • It’s multi-platform

    With Markdown your documents are cross-platform by nature. You can edit them in any plain text editor, or directly on GitHub. There are also a wide-rangeofMarkdowneditors out there.

  • It’s solid

    When converting to HTML, Markdown translates quickly to perfectly-formatted documents; no missing closing tags, no improperly nested tags. No need to explain complex things like classes or nodes.

Are those real advantages on a daily day basis?

Yes, definitely. We use Markdown for almost everything. From writing content on our websites to creating internal documentation, from telling stories with maps to creating to-do lists. Even this post has been written and reviewed in Markdown! By using it, the less technical people on the team (like the person editing this post) can contribute directly to our repos or create content that is later translated to something more visual, without having to worry about breaking stuff.

Although you may have already encountered Markdown if you’re using Github, Stack Exchange, iA Writer or Simplenote, here are a couple of links that might be interesting for you if you’re just starting to learn it: the official Markdown syntax website and this course at Code Academy.

Happy mapping!

Welcome Santi

$
0
0

Santi Saez

We are happy to announce Santi Saez is joining CartoDB team. He is going to try to automate everything inside the CartoDB engines.

Santi is crazy about automating stuff. He already left his mark in Hostalia - a important spanish hosting company - and in Tuenti - the leading social network in Spain.

Some people says that he cheats and that all the merits are from his dog Hodei. We are willing to test that theory.

He defines himself as “a middle age guy that loves to travel, go hiking and that always says hello”.

Introducing CartoDB Startup Grants

$
0
0

Like many of you know, building a startup is hard work. The CartoDB team is a product of this energy. Growing from a group of programmer friends with a desire to build technology for better communication–and to ultimately change the world–has taught us about what it takes to be successful innovators. Step one, obviously, is to believe in your mission. Step two is to make others believe.

So, you have step one on lock? Excellent. Step two is where we come in. CartoDB brings design and interaction to the forefront of every project because online communication starts with the very first look. Today we are officially launching our Startup Grant initiative. Through this initiative, we will fund interesting and promising startups working on exciting projects that are at the early stages of growth.

Take LocalData–a web-based mapping tool that enables street-level data collection and analysis in real-time.

LocatlData

LocalData co-founders Matt, Alicia, and Prashant believe in the exciting and disruptive idea that communities need to be empowered to design their own cities. They are mobilizing urban residents, planners, and organizations to source and share information about the infrastructure of where they live, putting CartoDB’s own open-access ethos into practice. Everyone can be an expert. That is an idea we love to get behind!

If you think your startup could benefit from the CartoDB Editor, Platform, and Services, then apply for a CartoDB Startup Grant. As CartoDB continues to grow, we are excited about collaborating with other like-minded teams who will use our platform to do what they do best. We look forward to being inspired!

As a side note, LocalData is also doing some nice work to clean and curate open data. You can access this data on their CartoDB landing page

Using NYPL MapWarper maps inside CartoDB

$
0
0

Geospatial data lovers know that proximity has its perks- especially in a major city like New York. We recently spent a few minutes browsing through the work of New York Public Library’s Map Division and discovering all of the awesome tools they’re creating- one of which we are about to share with you. World, meet (or re-meet for those of you who already know) MapWarper: The NYPL’s open-access tool for rectifying historical maps from its collections and making them available to the public.

The library’s developer team has been seriously cranking, so you have almost 10,000 maps to peruse and use. How in the what, you ask? Gain behind-the-scenes insight on MapWarper magic from the above video and this blog post, both courtesy of the NYPL. In addition, support the cause by aligning cool maps you come across during your searches that are in need of special attention. MapWarper makes it easy for you to DIY rectify with a built-in “Edit” function.

Now for some fun in CartoDB

Our basemap importer makes it easy to borrow from the library (no card required) for your CartoDB projects. Here goes a quick refresher. From any map in your CartoDB Editor, click “Select basemap” and then “Yours [+]” to initiate step one of your historical visualization:

Imgur

Next, you’ll click “XYZ” input option. On the MapWarper platform, the “Export” tab reveals itself on any historical basemap that has been rectified and supports WMS or Tile (XYZ). Take a look here for example, http://maps.nypl.org/warper/maps/27562#Export_tab. To use the map in the previous link, right-click copy the “Tiles (Google/OSM scheme): Tiles base URL”. The link you copy looks like this:

http://maps.nypl.org/warper/maps/tile/27562/z/x/y.png

This is almost all you need, but it takes a minor tweak to work with CartoDB. Simply, add brackets around each letter in the “z/x/y/” portion of the URL, like this:

http://maps.nypl.org/warper/maps/tile/27562/{z}/{x}/{y}.png

Cut and paste the link from there to here, and “Add basemap”.

Imgur

Boom! Now you may annotate, add points, and draw lines at will.

Here’s a sneak peek of what happens next. Below, we have simply added a NYPL Map Warper basemap to CartoDB, added an annotation for our Office, and slipped a boundary layer.

Or take a look at this one,

Neat, right? We thought you’d say that, which is why we’ve decided to tell you a cool historical story every now and again with CartoDB’s “Mapping the Past” feature series. Keep watch, and until we meet again in the days of future past, Happy mapping!


Wanted: Geo Programmer Intern to Aid in Mars Mission

$
0
0

Wow. CartoDB is going to Mars? Well, kind of. We’re looking for an extra special intern that will help the European Space Agency search for a martian landing spot and communicate it to the public, though.

The ExoMars 2018 mission aims to land a rover on Mars with the goal of gathering more evidence in the search for extraterrestrial life.

Where does CartoDB come in? Finding a landing site is hard work, and it turns out that it has very much to do with geospatial analysis. Your goal: to build an interactive web map visualization of the ExoMars Rover landing sites.

Info from the Project Page: > This trainee project is an outreach project generally aiming at drawing the attention and increasing the interest of the general public for the scientific and robotic exploration of Mars in Europe. The goal of the project is to design and build an interactive web map visualisation of the four recommended ExoMars landing sites. The visualisation will be based on some of the ESA and NASA planetary imagery data and additional geospatial information used by the Landing Site Selection Working Group. It will be designed so that it is engaging for a non-expert public and facilitating the understanding of a few key concepts for the selection of the landing sites, including scientific and engineering constraints. > > The trainee will work with the support of the ESA’s Planetary Science Archive (PSA) Team at ESAC, and the CartoDB team based in Madrid and New York. He/she will also be in contact with the ExoMars Landing Site Selection Working Group. His/her work will mainly consist in designing and prototyping the front-end web interface of the interactive map visualisation. It will also include supporting the identification and preparation of all necessary geospatial and mapping data products for ingestion into the system back-end.

Application details:

Random space related map: 2013 Space Launch Map

Good luck!

Introducing Positron and Dark Matter basemaps from CartoDB

$
0
0

There doesn’t seem to be a day that goes by anymore without us seeing some far out data visualization using CartoDB. From modeling the Alcatraz escape routes to mapping the Starwars Galaxy our users know how to keep us impressed. Our goal in it all is to continuously make our platform easier to use and to give you the tools that make your maps shine. As part of that march forward, today we wanted to show off two new basemaps available in the CartoDB editor.

We collaborated with Stamen Design to develop these maps specifically for data visualization uses. They are meant to be quiet but hardworking layers that helps you showcase your own data. They will give your viewers geospatial context while they zoom around your maps. The maps come in two color themes so that you can make your data shine in any scenario. And we give you the ability to use either map with or without labels, helping you customize any map.

Positron

Dark Matter

These maps are built using data from OpenStreetMap, which means that they are up-to-date with the latest data coming from mapping efforts around the world. It means that if you see pieces missing, you have the ability to update or edit those features directly from your browser.

These maps were built with love. Use them and enjoy them without limitations. If you are curious about how to use them in your own projects, read the full write-up here.

Happy mapping!

Center of Points in Geometric Coordinates

$
0
0

Let’s imagine the following scenario…

There are five geostationary satellites around the earth and you need your map to automatically pan to the center of their locations to know the rough region of their coverage. On a number line this isn’t a very hard problem since it’s like finding a center of mass or mean for some arbitrary quantity :

Latitude works this way, but longitude is different.

Why Longitude is Different

What makes it difficult for longitude is that points that are actually very close can have a very large range in the coordinate system we commonly use. Take the following example: Tonga is located at 175.2° W and Tuvalu is at 179.2° E. How far apart are they? Well, it should be 5.6° longitude since they are 4.8° and 0.8° from 180° W/E, respectively. But since we normally view longitude as a number line [-180°, 180°] where East is positive and West is negative, these two points are

apart! Which answer is correct? Well, they both are, but this can cause some annoying problems if we were to devise a solution to finding the center of points on a map. In our example with Tonga and Tuvalu, the first solution would be well zoomed into the islands, whereas the second would be zoomed out enough to encompass 354.4° of the globe.

Still working with Tonga and Tuvalu, what would be the mean location of these two countries? Mean is sum / number of points, so we get

or 2° to the east of the prime meridian. That seems odd because that’s on the other side of the world.

Since we are getting results that seem a little nonsensical, there must be a clearer solution to our problem.

Finding another way

The problem here lies in viewing longitude as a number line where the end points are far apart, when in fact the end points represent the same physical location. One way to get around this difficulty involves mapping the line segment to a two-dimensional ring of radius one (a unit circle). This is convenient because now -180° and +180° lie at the same point in this new two-dimensional coordinate system: \((-1,0)\).

Below is an image of the satellite problem mentioned above. Five satellites are arranged around the earth. The coordinate system on the left represents the longitude as we normally measure it; the coordinate system on the right is the transformed longitude with degrees at appropriate locations to show the mapping. As you can easily see on the map, taking the normal mean of longitude (the red ×) gives a value that’s way off compared to the correct value (the gold star). If the coordinate system were just a number line without periodic boundary values, though, you could balance the line on your finger at the red ×.

Center of Points demo

The transformation that helps us to find the gold star is the following:

where the index means that it is the entry in the data table (of entries).

To find our center of points, we now need to average over all the and (which we’ll call and ), and then find the angle between them. The angle can be calculated by finding the inverse tangent. To be careful about which quadrant is chosen, we will use atan2, the two-argument inverse tangent that preserves the signs of the inputs.

This calculation for longitude, and the one mentioned above for latitude, can be easily calculated in CartoDB by placing the following SQL command in the SQL editor. The values calculated are: avg_lon based on the discussion just above, avg_lon_naive based on a straight average of longitude, and avg_lat the average latitude.

Data Table

countrylatlon-------    --------    ---------
Tonga-21.1333-175.2Tuvalu-8.53333179.2167

SQL

SELECT180*atan2(s.zeta,s.xi)/pi()ASavg_lon,s.avg_lon_naiveASavg_lon_naive,s.avg_latASavg_latFROM(SELECTavg(sin(pi()*lon/180))ASzeta,avg(cos(pi()*lon/180))ASxi,avg(lon)ASavg_lon_naive,avg(lat)ASavg_latFROMpacific_islands)ASs

Aside: If you are performing this calculation over a large number of points, the SQL function sum() will probably be faster than avg(). Since tangent is defined as opposite / adjacent, any common multiples cancel. This means that the denominator used in averages will cancel for both and , so avg() can be replaced by sum() for those calculations.

Output

avg_lonavg_lon_naiveavg_lat-------    -------------    -------
-177.9922.00833-14.9333

The result for avg_lon makes sense because it is in between Tuvalu and Tonga. avg_lon_naive is just wrong. Notice that we have to convert degrees to radians and then back in the process. Also notice that the two calculated longitudes are 180° apart for the two point case. For a larger dataset, the avg_lon_naive result becomes more nonsensical.

Using the dataset linked at the bottom, you can see the data visualized on the map. It’s abundantly clear that the naive approach to finding the mean longitude does not work.

Output

avg_lonavg_lon_naiveavg_lat-------    -------------    -------
176.61436.6444-11.4833

Weighted Center of Points

These results can be generalized to a weighted center of points. If the column you want to weight by is , then we get

Since tangent takes the ratio of the arguments, the denominators would cancel, and our equation simplifies in a way to make it easier for the computer!

In SQL, this equation would look like:

SELECT180*atan2(s.zeta_w,s.xi_w)/pi()ASavg_w_lon,s.avg_w_lon_naiveASavg_w_lon_naive,s.avg_w_latASavg_w_latFROM(SELECTsum(w*sin(pi()*lon/180))ASzeta_w,sum(w*cos(pi()*lon/180))ASxi_w,sum(w*lon)/sum(w)ASavg_w_lon_naive,sum(w*lat)/sum(w)ASavg_w_latFROMpacific_islands)ASs

Pro Tip: If you don’t have an explicit latitude or longitude column, you can use the information directly from the_geom by replacing lat with ST_Y(the_geom) and lon with ST_X(the_geom).

We’re all about open data here at CartoDB. If you want to clone the map and data, see them both here. Happy mapping!

Educator's Night Recap

$
0
0

Fall semester is coming to a close and with that thousands of incredible educators get to wrap up their courses and start planning for the next ones. We are really proud that CartoDB has been a part of many of those courses and will be a bigger part of many more next semester. That is why we thought it was time to start digging into the challenges of teaching with maps in the classroom.

To help us better understand the uses, needs, and challenges of teaching with CartoDB, we threw the first Educator’s Night here at our Brooklyn offices. The first half of the evening we spent hearing from three amazing educators from around NYC. The second half of the evening we spent in breakout groups documenting needed resources and technologies for the future of map based education. Here is a short report of what we found.

What external technologies do educators use with CartoDB

It was interesting to hear the educators exchanging use-cases and lesson ideas throughout the night. In those exchanges, we heard a lot about what technologies educators were using in addition to CartoDB. Those included GitHub for hosting pages that use CartoDB.js, PiratePad for collaborative note taking, Bootstrap for larger web development projects, and PasteBin for sharing code, SQL, and CartoCSS examples. Sounds a lot like the things we use around the office!

What data excites students

For new instructors, one question that is interesting to ask is, what data do students like to explore? We threw the question out there and heard back a variety of responses. Social media and quantified self data were two clear winners. We also heard requests for sports data and hyperlocal data. Thematic datasets like global crises data came up, too. Of the top of our head, we were able to name a few resources already: CartoDB’s own Twitter Connector, OpenPaths and Moves for students collecting their own movement histories, GDELT and our own for global crises events.

While we can’t solve all of, we are going to look into how we can contribute to solutions for each. We currently make Twitter data available to Enterprise accounts, but in the future we will be offering free student access in some cases. Quantified self is harder, but we are going to keep our eyes open for more solutions. For now, resources such as OpenPaths and Moves allow students to collect their own secure data and make maps easily on CartoDB. For crises data, we are continuously trying to improve our Common Data or GDELT project has a very comprehensive dataset of information; we’d also like to loop in some patterns with other open source services like Ushahidi’s CrisisNET, or other streaming sources of crisis information.

Above. Choropleth created by a student student in Amanda Hickman’s Journalism and Data Visualization class.

What things are missing

We are enhancing our software every day by adding new resources, features, and improved usability. At the Educator’s Night we got some really interesting feedback about features to add to our roadmap. A few that we really liked included a SQL playground, vetted data packages, and modular tutorials. We are going to work on all of these areas in the near future. Modular tutorials is something we have already begun to look into more deeply and will be spending time in the coming month to make it happen. The idea of a SQL playground we just love!

Who is using CartoDB

Tough question! There was a time at CartoDB when we knew every user on the platform. That time has long past. But at least at the Educator’s Night, it was amazing to see the diversity of courses that incorporate CartoDB, from GIS to History, Data Journalism to Design. There were conversations with librarians and with high school teachers. It was so inspiring and we are very excited that this community joined us to talk about their visions for education.

We think 2015 is going to be a serious year of mapping. Throughout the year, we are going to work hard to make mapping tools easier for students and easier for educators. If you are using CartoDB in the classroom, get in touch with us at support@cartodb.com and let us know what you are up to. We are always interested in how we can make the experience better. Also don’t forget, students and educators can always take advantage of our free upgrades.

Thanks to everyone involved!

And thanks to Andy B. for sharing a great physics-related map that would be a rich example to recreate in a classroom!

Stay tuned to our blog for the full write-up about the above map next week.

Happy mapping!

Map of the Week: CartoDB goes to the Galaxy, Far Far Away

$
0
0

In exactly one year from today, the force will re-awaken with Star Wars: Episode VII. Until then, get caught up on humanity’s favorite space saga with this comprehenisive map of the Star Wars galaxy:

Featured: all of the planets, hyperspace lanes, sectors, and regions of the Star Wars galaxy. Planets are represented as points, hyperspace lanes as polylines, and regions and sectors as polygons. Each object has a set of attributes including its name, location, and other information for easy data searching.

Yeah, we’re geeking out, too. Thanks to Henry Bernberg, a long-time Star Wars enthusiast and soon-to-be Master of Urban Spatial Analytics #upennschoolofdesign #spring2015 #congrats, superfans and map-makers alike have a stellar visualization (pun points!) to explore.

Henry was inspired to undertake his ambitious project after finding W.R. Van Hage’s “Map of the Star Wars Galaxy”:

While quite beautiful, this map lacked interactivity, which led Henry to search for more. When he found Modi’s map and the official Star Wars’ The Essential Atlas, Henry realized that the world needed a user-friendly portal to search for planets and objects in the Star Wars universe that would link to Wookieepedia and other fan-friendly resources.

Combining mapping, design, and data skills, Henry made georeferenced scans of Essential Atlas maps come to life. For more insight into Henry’s mad skills and process behind this project, peep the wesbite.

In the future, Henry envisions adding specific search and navigation functionality so that users can locate planets by name and determine the distance from Endor to Hoth (note: Ewoks> Wampa) #prepareyourspacesuit. In the meantime: if you see something, say something. Help Henry continue mapping the Galaxy Far, Far Away in time for 2015’s big release.

Happy Mapping!

Viewing all 820 articles
Browse latest View live




Latest Images