Giter VIP home page Giter VIP logo

Comments (3)

Robinlovelace avatar Robinlovelace commented on July 18, 2024

Now THAT's cool (head works near perfect I reckon) - just needs faster print IMO:

head(res)
   osm_id code     fclass                  name ref oneway maxspeed layer bridge tunnel                       geometry
1 2161182 5153    footway            Jutfaseweg          B        0     0      F      F LINESTRING(5.1151418 52.068...
2 2952999 5153    footway Pieter Bernagiestraat          B        0     0      F      F LINESTRING(5.1177934 52.077...
3 2953564 5152   cycleway             Timorkade          B        0     0      F      F LINESTRING(5.1042701 52.090...
4 2953622 5153    footway            Vredesteeg          B        0     0      F      F LINESTRING(5.1263447 52.080...
5 2956818 5124 pedestrian                Alkhof          B        0     0      F      F LINESTRING(5.1249625 52.079...
6 2956867 5152   cycleway                                B        0     0      F      F LINESTRING(5.0737949 52.112...

from sf.

edzer avatar edzer commented on July 18, 2024

print was never written to print massive data sets. Even if it will print only the first 99999 lines, it will first convert the whole object to text. I agree that this is annoying, but printing the table without features also takes long, and printing the table with features eventually works. As you see, sf has a format.sfi method, but it doesn't know whether it will be called 10 or 10 billion times. It does "some" optimisation, just not one that helps a lot for this particular dataset (with only LINESTRINGs).

from sf.

edzer avatar edzer commented on July 18, 2024

Maybe a nice use case to try out sf with tibbles?

from sf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.