Skip to content

Commit 4eeda56

Browse files
committed
move changelog to separate file from readme
1 parent d282650 commit 4eeda56

File tree

2 files changed

+97
-87
lines changed

2 files changed

+97
-87
lines changed

README.md

Lines changed: 11 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -36,82 +36,6 @@ Software source code previously released under an open source license and then m
3636

3737
The GeoPackage JavaScript library currently provides the ability to read GeoPackage files. This library works both in the browser and in Node. In the browser tiles are rendered using HTML5 Canvas and GeoPackages are read using [sql.js](https://github.com/kripken/sql.js/). In Node tiles are rendered [PureImage](https://github.com/joshmarinacci/node-pureimage) and GeoPackages are read using [node-sqlite3](https://github.com/mapbox/node-sqlite3).
3838

39-
### Changelog
40-
41-
##### 4.2.3
42-
43-
- fix cached geometry error
44-
45-
##### 4.2.2
46-
47-
- fix simplify error
48-
49-
##### 4.2.1
50-
51-
- Fix for drawing geometries outside of the 3857 bounds
52-
53-
##### 4.2.0
54-
55-
- Support for drawing vector data into EPSG:4326 tiles
56-
- Added createStandardWGS84TileTable
57-
58-
##### 4.1.0
59-
60-
- Typescript updates
61-
- Extract converters, leaflet plugin, mobile optimizer, and viewer into their own packages
62-
63-
##### 4.0.0
64-
65-
- Alter tables functions (copy, rename for table and columns)
66-
- Publish separate node and browser module
67-
- GeoPackageJS can now be run in Node.js worker_threads and Web Workers
68-
69-
##### 2.1.0
70-
71-
- Implementation of the Feature Style Extension and Contents ID Extension
72-
73-
##### 2.0.8
74-
75-
- Checks for Electron when returning a tile creator
76-
77-
##### 2.0
78-
79-
- All new API utilizing Promises
80-
81-
##### 1.1.4
82-
83-
- Adds a method to retrieve tiles in EPSG:4326
84-
85-
##### 1.1.3
86-
87-
- Fixes issue #115
88-
89-
##### 1.1.2
90-
91-
- fix case where GeoPackage Zoom does not correspond to the web map zoom
92-
93-
##### 1.1.1
94-
95-
- fix more instances of proj4 bug for react
96-
- fixed tile generation for images with different x and y pixel densities
97-
98-
##### 1.1.0
99-
100-
- accept pull request adding support for react
101-
- fix bug with projected tiles that spanned the date line
102-
103-
##### 1.0.25
104-
105-
- ensure we use proj4 2.4.3 instead of 2.4.4
106-
107-
##### 1.0.22
108-
109-
- Fixed bug where querying for indexed features only returned the geometry instead of the entire feature
110-
111-
##### 1.0.19
112-
113-
- Remove dependency on Lwip
114-
11539
### Usage ###
11640

11741
View the latest [docs](https://ngageoint.github.io/geopackage-js/).
@@ -122,7 +46,7 @@ View the latest [docs](https://ngageoint.github.io/geopackage-js/).
12246
```
12347
```javascript
12448

125-
// Specify folder containing the sql-wasm.wasm file.
49+
// Specify folder containing the sql-wasm.wasm file.
12650
// By default, geopackage loads from https://server/public/sql-wasm.wasm
12751
window.GeoPackage.setSqljsWasmLocateFile(file => '/path/to/geopackage/dist/' + file);
12852

@@ -218,7 +142,7 @@ var canvas = document.getElementById('canvas');
218142
var geopackageWorker;
219143
if (window.Worker) {
220144
geopackageWorker = new Worker("worker.js");
221-
145+
222146
// handle responses from the geopackage web worker
223147
geopackageWorker.onmessage = function(e) {
224148
// draw tile
@@ -388,7 +312,7 @@ onmessage = function(e) {
388312
#### NodeJS Usage ####
389313

390314
```javascript
391-
var {
315+
var {
392316
GeoPackageAPI,
393317
GeoPackageTileRetriever,
394318
FeatureTiles,
@@ -403,11 +327,11 @@ setCanvasKitWasmLocateFile(file => 'path/to/geopackage/dist/canvaskit/' + file);
403327
GeoPackageAPI.open('filename.gpkg').then(geoPackage => {
404328
// get the tile table names
405329
const tileTables = geoPackage.getTileTables();
406-
330+
407331
tileTables.forEach(table => {
408332
// get tile dao
409333
const tileDao = geoPackage.getTileDao(table);
410-
334+
411335
// get table info
412336
const tableInfo = geoPackage.getInfoForTable(tileDao);
413337

@@ -440,14 +364,14 @@ GeoPackageAPI.open('filename.gpkg').then(geoPackage => {
440364

441365
// get the feature table names
442366
const featureTables = geoPackage.getFeatureTables();
443-
367+
444368
featureTables.forEach(table => {
445369
// get the feature dao
446370
const featureDao = geoPackage.getFeatureDao(table);
447-
371+
448372
// get the info for the table
449373
const tableInfo = geoPackage.geoPackage.getInfoForTable(featureDao);
450-
374+
451375
// draw tiles using features
452376
const ft = new FeatureTiles(featureDao);
453377
var x = 0;
@@ -459,11 +383,11 @@ GeoPackageAPI.open('filename.gpkg').then(geoPackage => {
459383
// error retrieving tile
460384
console.error(e);
461385
});
462-
386+
463387
// query for all features as geojson
464388
const geojsonFeatures = geoPackage.queryForGeoJSONFeaturesInTable(table);
465389
});
466-
390+
467391
// add a spatial reference system to the geopackage
468392
const srs = new SpatialReferenceSystem();
469393
srs.srs_name = 'NAD27 / UTM zone 11N';
@@ -472,7 +396,7 @@ GeoPackageAPI.open('filename.gpkg').then(geoPackage => {
472396
srs.organization_coordsys_id = 26711;
473397
srs.definition = 'PROJCS["NAD27 / UTM zone 11N",GEOGCS["NAD27",DATUM["North_American_Datum_1927",SPHEROID["Clarke 1866",6378206.4,294.9786982138982,AUTHORITY["EPSG","7008"]],AUTHORITY["EPSG","6267"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4267"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-117],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","26711"]]';
474398
geoPackage.createSpatialReferenceSystem(srs);
475-
399+
476400
// create a tile table using the spatial reference system
477401
// bounding box is the bounds for EPSG:26711
478402
const boundingBox = new BoundingBox(202161.66, 568941.68, 2982030.40, 8674415.25);

changelog.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
### Changelog
2+
3+
##### 4.2.5
4+
5+
- Fix a bug that set `undefined` on sql.js prepared statement values causing sql.js to throw an error.
6+
- Update `better-sqlite3` dependency to 9.x.
7+
- Make `properties` parameter to optional in signature of `createMediaTable()` method.
8+
- Add stack trace to error log when loading SQLite adapter.
9+
10+
##### 4.2.4
11+
12+
- Update CanvasKit libs with libs from develop to fix runtime error in Node 18
13+
14+
##### 4.2.3
15+
16+
- fix cached geometry error
17+
18+
##### 4.2.2
19+
20+
- fix simplify error
21+
22+
##### 4.2.1
23+
24+
- Fix for drawing geometries outside of the 3857 bounds
25+
26+
##### 4.2.0
27+
28+
- Support for drawing vector data into EPSG:4326 tiles
29+
- Added createStandardWGS84TileTable
30+
31+
##### 4.1.0
32+
33+
- Typescript updates
34+
- Extract converters, leaflet plugin, mobile optimizer, and viewer into their own packages
35+
36+
##### 4.0.0
37+
38+
- Alter tables functions (copy, rename for table and columns)
39+
- Publish separate node and browser module
40+
- GeoPackageJS can now be run in Node.js worker_threads and Web Workers
41+
42+
##### 2.1.0
43+
44+
- Implementation of the Feature Style Extension and Contents ID Extension
45+
46+
##### 2.0.8
47+
48+
- Checks for Electron when returning a tile creator
49+
50+
##### 2.0
51+
52+
- All new API utilizing Promises
53+
54+
##### 1.1.4
55+
56+
- Adds a method to retrieve tiles in EPSG:4326
57+
58+
##### 1.1.3
59+
60+
- Fixes issue #115
61+
62+
##### 1.1.2
63+
64+
- fix case where GeoPackage Zoom does not correspond to the web map zoom
65+
66+
##### 1.1.1
67+
68+
- fix more instances of proj4 bug for react
69+
- fixed tile generation for images with different x and y pixel densities
70+
71+
##### 1.1.0
72+
73+
- accept pull request adding support for react
74+
- fix bug with projected tiles that spanned the date line
75+
76+
##### 1.0.25
77+
78+
- ensure we use proj4 2.4.3 instead of 2.4.4
79+
80+
##### 1.0.22
81+
82+
- Fixed bug where querying for indexed features only returned the geometry instead of the entire feature
83+
84+
##### 1.0.19
85+
86+
- Remove dependency on Lwip

0 commit comments

Comments
 (0)