Comments (13)
@sirws would you mind adding you config file? I just want to see what set so I can match it.
from koop-socrata.
@chelm Bear with me... Are you talking about the \koop-sample-app\config\default.json?
from koop-socrata.
{
"server": {
"port": 1337
},
"data_dir": "/usr/local/koop/",
"db": {
"conn": "postgres://user:password@localhost/koopdev"
}
}
from koop-socrata.
@sirws Interesting. Dnt see it locally. It might a windows issue. Whats going on is that "/drop" calls the local file system and tries to remove directories of exported data. It could be that on windows it throws an error where on mac/unix it just ignores it.
from koop-socrata.
In fact looking at how koop removes dirs might be the issue...
https://github.com/Esri/koop/blob/master/lib/Files.js#L173-L180
That seems pretty "linuxy" to me. There may be some way to make that work in both Windows and Linux/Mac. you could try to commented some of that code out.
Also I'm curious if you have tried running the koop test suite on windows?
from koop-socrata.
How does "data_dir": "/usr/local/koop/" translate to windows? Since this isn't a *nix os?
Do you think I need to change the data_dir to something more windozy?
from koop-socrata.
Hahah! No, I haven't run the koop test suite. Is there some good doc on that?
from koop-socrata.
@sirws oh yes! you are probably right on making the data_dir more windows freindly! I bet thaat might help.
To run the tests just:
cd node_modules/koop
npm install --dev
npm test
from koop-socrata.
@chelm Well, looking at the code, it is calling rm which is not a windows command. Perhaps I will log a bug to handle that on windows properly.
from koop-socrata.
right. Im guessing there is a recursive remove dir module that will work on both OS, we could add that as a dep to Koop so that this will work.
from koop-socrata.
This might work, but looks like it has issues on windows too: https://github.com/isaacs/rimraf
from koop-socrata.
Are there any local files getting created? I am not seeing any on windows. Not sure where they would be.
/koop/socrata/wa/9ubz-5r4b/drop undefined {} {}
debug: 0=D:/koop-sample-app/data/files/socrata:https://data.wa.gov:9ubz-5r4b
debug: 0=D:/koop-sample-app/data/tiles/socrata:https://data.wa.gov:9ubz-5r4b
debug: 0=D:/koop-sample-app/data/thumbs/socrata:https://data.wa.gov:9ubz-5r4b
There is nothing the d:\koop-sample-app\data directory.
from koop-socrata.
@sirws Files will only get written when an export is created. And actually this raising a new issue about the dir structure. It'd be cleaner if koop contained the file dirs under the item id first. I'll make an issue for that.
from koop-socrata.
Related Issues (20)
- Allow non-point geometry in Koop-Socrata (Feature Request)
- Koop-Socrata handles 1mm row datasets HOT 7
- Can't do Walk Time Analysis on simple point layer HOT 6
- NYC Socrata JSON invalid HOT 1
- Feature service count requests need to respect callbacks in querystrings
- Transfer more metadata from Socrata
- Multiple Location Column Designator not Working HOT 1
- Koop-Socrata Cache Timer Not Expiring HOT 1
- Some large datasets seem to get stuck HOT 4
- tests leave leftover logging/error messages HOT 4
- Failing to register hosts HOT 2
- Missing fields in Socrata datasets HOT 3
- Numbers being interpreted as date fields HOT 10
- enhancement: make sure the provider can create its own table in db HOT 1
- Unable to install on Windows HOT 4
- Error in the log file HOT 1
- Adding Socrata token
- Certain datasets from Socrata have incorrect spatial reference
- An in-range update of request is breaking the build 🚨 HOT 5
- Version 10 of node.js has been released
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 koop-socrata.