Comments (6)
https://github.com/CartoDB/cartodb-nodejs#sqlexecute
from cartodb-nodejs.
Yep, it should work just like that:
user.cartodb.com/api/v2/sql?q=select+*+from+table_name&format=shp
from cartodb-nodejs.
@demimismo he's asking how to do that on this library (nodejs)
Our backend supports it as you've seen but the library doesn't fetch any format other than JSON. The code is around here:
https://github.com/Vizzuality/cartodb-nodejs/blob/master/lib/cartodb.js#L171
I think it doesn't make much sense to fetch formats other than JSON from the library as it's intended to use the data for consumption by JS code, but if you want it shouldn't be difficult to add a format parameter on that line.
from cartodb-nodejs.
@zenitraM yes, exactly.
from cartodb-nodejs.
Going to close this, thanks for the help guys.
from cartodb-nodejs.
It should at least allow for GeoJSON format. Maybe this is fixed in later versions.
from cartodb-nodejs.
Related Issues (20)
- Error if existing cartodbClient instance is reused by multiple requests HOT 1
- HTTPS HOT 1
- cartodb_url param on CartoDB instantiation HOT 1
- On-premise endpoint: UNABLE_TO_VERIFY_LEAF_SIGNATURE HOT 3
- Update Branch needs new tests HOT 1
- Remove dependency to mustache ?
- Add js linter
- Favor options object instead of arguments list in method signatures
- Remove Makefile HOT 1
- Add unit tests and aim at 100% coverage
- Add test coverage tool
- Add end-to-end tests
- Use a better test reporter
- Use a better assertion library
- debug msg crashes express HOT 1
- v0.5 sql.execute returns a string instead of JSON HOT 3
- Update to use carto.com endpoints HOT 1
- Import API Streaming [feature Request] HOT 2
- resources domain needs to be updated HOT 2
- Might have ran into an issue with another lib upgrade incompatibility.
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 cartodb-nodejs.