<commit_before># node-gdal
[![NPM version](https://badge.fury.io/js/gdal.png)](http://badge.fury.io/js/gdal)
[![Build Status](https://travis-ci.org/naturalatlas/node-gdal.png?branch=master)](https://travis-ci.org/naturalatlas/node-gdal)
[![Build Status](https://ci.appveyor.com/api/projects/status/mo06c2r5opdwak95)](https://ci.appveyor.com/project/brianreavis/node-gdal)

Read and write raster geospatial files straight from [Node.js](http://nodejs.org) with this native [GDAL](http://www.gdal.org/) binding. GDAL [1.11.0](http://trac.osgeo.org/gdal/wiki/Release/1.11.0-News) with GEOS [3.4.2](http://trac.osgeo.org/geos/browser/tags/3.4.2/NEWS) comes bundled, so node-gdal will work straight out of the box.

```sh
$ npm install gdal --save
```

To link against shared libgdal, install using:

```sh
$ npm install --shared_gdal
```

## Usage

```js
var gdal = require('gdal');
var driver = gdal.getDriverByName("GTiff");
var dataset = gdal.open("./examples/sample.tif");

console.log("number of bands: " + dataset.getRasterCount());
console.log("width: " + dataset.getRasterXSize());
console.log("height: " + dataset.getRasterYSize());
console.log("geotransform: " + dataset.getGeoTransform());
```

## Test

```sh
$ npm test
```

## License

Copyright &copy; 2014 [<NAME>](https://github.com/brandonreavis) & [Contributors](https://github.com/naturalatlas/node-gdal/graphs/contributors)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.<commit_msg>Updated README to be more current.<commit_after># node-gdal
[![NPM version](https://badge.fury.io/js/gdal.png)](http://badge.fury.io/js/gdal)
[![Build Status](https://travis-ci.org/naturalatlas/node-gdal.png?branch=master)](https://travis-ci.org/naturalatlas/node-gdal)
[![Build Status](https://ci.appveyor.com/api/projects/status/mo06c2r5opdwak95)](https://ci.appveyor.com/project/brianreavis/node-gdal)

Read and write raster and vector geospatial datasets straight from [Node.js](http://nodejs.org) with this native [GDAL](http://www.gdal.org/) binding. GDAL [1.11.0](http://trac.osgeo.org/gdal/wiki/Release/1.11.0-News) with GEOS [3.4.2](http://trac.osgeo.org/geos/browser/tags/3.4.2/NEWS) comes bundled, so node-gdal will work straight out of the box.

```sh
$ npm install gdal --save
```

To link against shared libgdal, install using:

```sh
$ npm install --shared_gdal
```

### Usage

```js
var gdal = require('gdal');
var dataset = gdal.open("./examples/sample.tif", "r", "GTiff");

console.log("number of bands: " + dataset.bands.count());
console.log("width: " + dataset.rasterSize.x);
console.log("height: " + dataset.rasterSize.y);
console.log("geotransform: " + dataset.geoTransform);
```

### Links

- [**Documentation**](docs/)
  - [Methods](docs/#methods)
  - [Drivers](docs/#drivers)
  - [Classes](docs/#classes)
- [**Examples**](examples/)

### Test

```sh
$ npm test
```


## License

Copyright &copy; 2014 [<NAME>](https://github.com/brandonreavis) & [Contributors](https://github.com/naturalatlas/node-gdal/graphs/contributors)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
{'fraction_non_alphanumeric': 0.1620741482965932, 'fraction_numerical': 0.014028056112224449, 'mean_word_length': 4.837719298245614, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 14, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6010479', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1304, 'n_words': 337}