{"action":"created","issue":{"url":"https://api.github.com/repos/walkerke/tigris/issues/5","labels_url":"https://api.github.com/repos/walkerke/tigris/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/walkerke/tigris/issues/5/comments","events_url":"https://api.github.com/repos/walkerke/tigris/issues/5/events","html_url":"https://github.com/walkerke/tigris/issues/5","id":94718193,"number":5,"title":"[DISCUSSION] railroads","user":{"login":"hrbrmstr","id":509878,"avatar_url":"https://avatars.githubusercontent.com/u/509878?v=3","gravatar_id":"","url":"https://api.github.com/users/hrbrmstr","html_url":"https://github.com/hrbrmstr","followers_url":"https://api.github.com/users/hrbrmstr/followers","following_url":"https://api.github.com/users/hrbrmstr/following{/other_user}","gists_url":"https://api.github.com/users/hrbrmstr/gists{/gist_id}","starred_url":"https://api.github.com/users/hrbrmstr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrbrmstr/subscriptions","organizations_url":"https://api.github.com/users/hrbrmstr/orgs","repos_url":"https://api.github.com/users/hrbrmstr/repos","events_url":"https://api.github.com/users/hrbrmstr/events{/privacy}","received_events_url":"https://api.github.com/users/hrbrmstr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-13T13:15:02Z","updated_at":"2015-07-13T21:07:29Z","closed_at":null,"body":"so, the resultant shapefile from a call to `rails()` results in a **353.3MB** `SpatialLinesDataFrame`. I've got a killer system and even it struggles to do anything useful with it. Since even the d/l take a bit, perhaps we should take advantage of the know user-wait on first grab to split it into chunks based on state? Perhaps even add `state` and `county` params to the function like the others to give the illusion of similar operation to the user. We'd have to add a message saying what's going on to the user for the initial processing and this one would almost require (IMO) mandatory caching vs the optional one now."},"comment":{"url":"https://api.github.com/repos/walkerke/tigris/issues/comments/121059355","html_url":"https://github.com/walkerke/tigris/issues/5#issuecomment-121059355","issue_url":"https://api.github.com/repos/walkerke/tigris/issues/5","id":121059355,"user":{"login":"walkerke","id":4872833,"avatar_url":"https://avatars.githubusercontent.com/u/4872833?v=3","gravatar_id":"","url":"https://api.github.com/users/walkerke","html_url":"https://github.com/walkerke","followers_url":"https://api.github.com/users/walkerke/followers","following_url":"https://api.github.com/users/walkerke/following{/other_user}","gists_url":"https://api.github.com/users/walkerke/gists{/gist_id}","starred_url":"https://api.github.com/users/walkerke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walkerke/subscriptions","organizations_url":"https://api.github.com/users/walkerke/orgs","repos_url":"https://api.github.com/users/walkerke/repos","events_url":"https://api.github.com/users/walkerke/events{/privacy}","received_events_url":"https://api.github.com/users/walkerke/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T21:07:29Z","updated_at":"2015-07-13T21:07:29Z","body":"So this works but it is super slow - didn't time it but it took my machine at least 5 minutes.  \r\n\r\n```r\r\nlibrary(tigris)\r\nlibrary(rgeos)\r\nlibrary(sp)\r\n\r\nrailroads <- rails()\r\n\r\nall_states <- states()\r\n\r\noregon <- all_states[all_states$NAME == 'Oregon', ]\r\n\r\noregon_rails <- gIntersection(railroads, oregon)\r\n\r\nplot(oregon_rails)\r\n```\r\n"}}