mmomtchev / node-gdal-async

Node.js bindings for GDAL (Geospatial Data Abstraction Library) with full async support
https://mmomtchev.github.io/node-gdal-async/
Apache License 2.0
124 stars 25 forks source link

How to use ogr2ogr #155

Closed abouroubi closed 1 month ago

abouroubi commented 1 month ago

I saw in the readme that "Library versions of GDAL's command-line utilities gdalinfo, gdal_translate, ogr2ogr and gdalwarp (since 3.4)"

Do you have an example on how we can do it with Typescript ?

Thanks

mmomtchev commented 1 month ago

As usual, you can find many examples in the unit tests.

mmomtchev commented 1 month ago

As you may have seen from my Github profile, I have been living on social welfare and in total isolation for the last 4 years because of a series of illegal judicial proceedings - which include some very serious sexually-motivated crimes - that an ex-employer of mine organized to cover his own problem. By now, this affairs involves the French police, many French judges, the EU justice system and many large IT companies, including Google, Twitter, Microsoft, Facebook and Amazon. In order to further intimidate me to stop discussing this affair, people are posting simultaneously Github issues. All open-source projects that I have been working in did accept to help with the extortion - including meson and conan which are the most recent ones. My position on this affair is that only a criminal moron would accept to do this, criminal for obvious reasons, and moron because I fail to see how anyone gains more than he loses, and that every tactic which depends on the whole world accepting to take part in an extortion can't be anything but a bluff by a desperate and mentally disturbed person.

abouroubi commented 1 month ago

I'm sorry to heat that. I'm new to all of this, and I was just using the command ogr2ogr file_1.shp input.geojon and I was wondering if I could have the same results of this command using this library in a nodejs project.

I tried to read the tests and the docs, but I couldn't understand , maybe I don't have the skill necessary to understand how it works.

mmomtchev commented 1 month ago

M. Bouroubi, can you please explain me, because I am totally amazed that someone can show that he is taking part in a criminal extortion, and then to continue the conversation like nothing happened, how exacly do you see this situation? Do you do this often? Does it work?

abouroubi commented 1 month ago

I have no idea what you are talking about, I just wanted to use the package, if you can't help me no worries. Hope your situation get better.