Comments (3)
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.
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 LINESTRING
s).
from sf.
Maybe a nice use case to try out sf with tibbles?
from sf.
Related Issues (20)
- `st_sf()` drops any sub classes of input data.frame whereas `st_as_sf()` respects it HOT 1
- Update GEOS to 3.11 or later HOT 9
- TODO: use CRS id 99999 in GPKG when GDAL >= 3.9
- st_area is always 0 HOT 3
- Support st_read GDAL/Ogr2ogr options HOT 14
- Argument mismatch in the docs for `st_zm()` HOT 1
- [question] M and XYZM are suported for `sfg` but not `sfc` HOT 3
- [Question] How to transform XY LINESTRING into XYZ LINESTRING? HOT 2
- Documentation for st_join
- Installing sf from compiled GDAL, PROJ and GEOS in Red Hat Enterprise Linux RHEL 8.9 (no admin user) HOT 4
- Loop 0 is not valid: Non-empty, non-full loops must have at least 3 vertices HOT 7
- Custom formating of axis tick labels HOT 1
- Read DXF units HOT 3
- Loading terra and sf makes st_transform become incredibly slow on ubuntu 22.04 HOT 3
- RFC 99: Geometry coordinate precision
- Cannot intall sf or terra HOT 1
- Segmentation failt (core dumped) when install package sf HOT 1
- The `st_buffer()` with `singleSide = TRUE` is inconsistent HOT 6
- TopologyException: side location conflict with st_overlaps HOT 4
- add st_txt? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sf.