Comments (5)
Could set up a cron job in a dokku container that syncs large files through ogr and Carto's endpoint: https://carto.com/blog/data-sync-ogr
from labs-tax-lot-selector.
The trick is that the postGIS database is internal to the docker container that carto is running in, so you don't have the luxury of just doing regular database commands. The import API, or the GUI are the only ways in, and large files don't play well...
There are some workarounds where we can expose the database to the host machine... this would be worth looking into, but then you have to manually cartodbfytable()
and stuff.
from labs-tax-lot-selector.
Actually, just downloaded the DTM... the polygons layer alone, zipped is 136MB, which might be manageable to send into the Carto import API.
from labs-tax-lot-selector.
I like the idea of exposing the internal database, or, even better, having that database running outside of the container on AWS or a Droplet (if it's ever rebuilt, all the data would be lost, no?).
Separately, maybe we just have a separate dokku app with a number of shell scripts triggered by crontab. Each script can bulk sync special cases like this. In this case, the script might split the file into manageable pieces using ogr2ogr.
from labs-tax-lot-selector.
Yes, it would be ideal to have the DB in a separate container altogether. We would need to dedicate some time to getting this set up in production... it provides for both direct access to the DB for etl, and a more consistent upgrade path for the applications.
from labs-tax-lot-selector.
Related Issues (20)
- Test on various OS and Browsers using Browserstack HOT 1
- Add Search by Tax Lot or BBL HOT 1
- Improve Tax Block and Tax Lot Labels
- Search should draw a point marker on the screen HOT 1
- Update header
- Paperless Filing download type HOT 5
- Use POST method for long URIs
- Convert to Ember
- can't select any lots HOT 2
- Add GeoSearch
- Update MapPLUTO references to new new aliased view HOT 1
- Issue to add labels
- Update Twitter card and Open Graph tag
- BUG: {"error":["column \"exemptland\" does not exist"]} HOT 3
- User is unable to select tax lots HOT 1
- Not rendering in IE HOT 2
- API call after user-defined polygon creation requests all fields
- Add Labs beta notice HOT 1
- Add the ability to do the reverse. Given a list of BBL's show it on the map
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 labs-tax-lot-selector.