Giter Site home page Giter Site logo

dbgeo's People

Contributors

jczaplew avatar jspeis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dbgeo's Issues

data.map is not a function

TypeError: data.map is not a function
at Object.dbgeo.parse (/home/pi/NodeJS/dataCollect/node_modules/dbgeo/lib/dbgeo.js:47:22)
at /home/pi/NodeJS/dataCollect/app2.js:34:12
at process._tickCallback (internal/process/next_tick.js:103:7)

parsing with the correct datatype

I'm trying to parse the out put of a query, but I get all the numerical fields as string even though they are numerical field in the postgreSQL

const dbgeo = require('dbgeo');
var db = pgp(DBconnJson.postgis);
db.query(formatSQL(req))
		.then((data)=> console.log(data))  // data appear in the console are in string format!
		.then(function (data) {
			dbgeo.parse(data, {
				outputFormat: 'geojson',
				precision: 6
			}
}

Is there any parameter I should set to preserve the data types?

Please publish the latest code to npm

We had a bug where, because the quantized option is not available or set in version 1.0.1 (which is the latest on npm), our points were snapping to super coarse grid when we had many markers. Setting the quantized param as described in the documentation did nothing because it's not picked up that version of the code.

Should also think about updating the topojson version the project is using since they're on 3.0.0 and dbgeo is using 1.x.

Thanks!

Let me know if there's any way I can help.

npm install dbgeo error

Hi John,

I'm attempting to create a nodejs app which allows me to talk to a postgis db and return query results to the browser as geojson to include in a leaflet map. i see that your postgeo app is now deprecated and that you've created dbgeo...but i've attempted to install in on both a windows and ubuntu server using - npm install dbgeo - but i get a series of errors.

Are you able to offer any advice?

Cheers

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.