Giter Club home page Giter Club logo

Comments (8)

wavded avatar wavded commented on May 28, 2024

I think you are on to something, there was a commit that came in earlier to alias PostgreSQL to use PGDump instead, but it appears both are supported and PostgreSQL should not be aliased.

http://www.gdal.org/drv_pg.html
http://www.gdal.org/drv_pgdump.html

from ogr2ogr.

ghelobytes avatar ghelobytes commented on May 28, 2024

Are you referring to this commit https://github.com/ChrisCarto/ogr2ogr/commit/801ec8fa781974f47c55b5a65432dc4c0bb4fa11 ?

from ogr2ogr.

wavded avatar wavded commented on May 28, 2024

Yes, that's a pretty simple change. The problem comes is which one should be default for ".sql" files. I imagine pgdump? But maybe not?

from ogr2ogr.

BerryDaniel avatar BerryDaniel commented on May 28, 2024

I made some minor changes to the drivers file and it worked for me

modified ogr2ogr / lib / drivers.json

From:

{
"format": "PGDump",
"aliases": ["PostgreSQL"],
"output": "sql"
},

To:

 {
    "format": "PGDump",
    "aliases": ["PGDump"],
    "output": "sql"
  },{
    "format": "PostgreSQL",
    "aliases": ["PostgreSQL"],
    "output": "sql"
  },

Example:

var ogr = ogr2ogr(layerPath)
                    .format('PostgreSQL')
                    .skipfailures()
                    .project('EPSG:4326', 'EPSG:4326')
                    .destination('PG:host=localhost user=postgres dbname=sandbox password=postgres')
                    .timeout(30000)
                    .stream();
        ogr.on('error', function(message) {
            console.log(message);
        });
        var ogr = ogr2ogr(layerPath)
                    .format('PGDump')
                    .skipfailures()
                    .project('EPSG:4326', 'EPSG:4326')
                    .destination('uploads/test2.sql')
                    .timeout(30000)
                    .stream();
        ogr.on('error', function(message) {
            console.log(message);

from ogr2ogr.

wavded avatar wavded commented on May 28, 2024

this is fixed now in 0.4.1

from ogr2ogr.

BerryDaniel avatar BerryDaniel commented on May 28, 2024

Marc,

I was recently looking at your humane.js and was wondering how I would
implement this in a nodejs + expressjs + jade setup. I am working on
something similar to ogre and would love to have info responses to the
user, like no features found display as a humane.log('No Features Found').
I did a few searches, but little came up for results on the subject.

Respectfully,
Dan

On Fri, Oct 17, 2014 at 10:31 PM, Marc Harter [email protected]
wrote:

Closed #8 #8.

Reply to this email directly or view it on GitHub
#8 (comment).

Daniel Berry
512.962.4518 - Cell number
217.434.4101 - Skype number

from ogr2ogr.

wavded avatar wavded commented on May 28, 2024

@BerryDaniel I have used connect-flash in the past, and have a little jade snippet in my layout that checks for flash messages and displays them in a div and then a little js that checks that div and pops them up. It probably could be streamlined more too.

from ogr2ogr.

BerryDaniel avatar BerryDaniel commented on May 28, 2024

Do you have an example you are willing to share. Seems like a decent
approach.

On Wed, Oct 22, 2014 at 9:59 AM, Marc Harter [email protected]
wrote:

@BerryDaniel https://github.com/BerryDaniel I have used connect-flash
in the past, and have a little jade snippet in my layout that checks for
flash messages and displays them in a div and then a little js that checks
that div and pops them up. It probably could be streamlined more too.

Reply to this email directly or view it on GitHub
#8 (comment).

Daniel Berry
512.962.4518 - Cell number
217.434.4101 - Skype number

from ogr2ogr.

Related Issues (20)

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.