Skip to content

Commit

Permalink
Release 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jericks committed Oct 22, 2021
1 parent 0b84834 commit ac58f2b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions doc/download.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Downloads
=========

`GeoScript JS 1.5.0 <https://github.com/geoscript/geoscript-js/releases/download/v1.5.0/geoscript-js-1.5.0.zip>`__

`GeoScript JS 1.4.0 <https://github.com/geoscript/geoscript-js/releases/download/v1.4.0/geoscript-js-1.4.0.zip>`__

`GeoScript JS 1.3.0 <https://github.com/geoscript/geoscript-js/releases/download/v1.3.0/geoscript-js-1.3.0.zip>`__
Expand Down
2 changes: 1 addition & 1 deletion doc/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ After extracting the release archive, you can open the GeoScript shell and impor
You can also use the uber jar that contains all dependencies and is runnable::

java -jar geoscript-js-1.4.0-app.jar
java -jar geoscript-js-1.5.0-app.jar
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<groupId>org.geoscript</groupId>
<artifactId>geoscript-js</artifactId>
<packaging>jar</packaging>
<version>1.5-SNAPSHOT</version>
<version>1.5.0</version>
<properties>
<gt.version>26-SNAPSHOT</gt.version>
<gt.version>26.0</gt.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ var Factory = require("../factory").Factory;
var Workspace = require("./workspace").Workspace;
var UTIL = require("../util");

var FlatgeobufDataStoreFactory = Packages.org.geotools.data.flatgeobuf.FlatgeobufDataStoreFactory;
var URLs = Packages.org.geotools.util.URLs;
var FlatGeobufDataStoreFactory = Packages.org.geotools.data.flatgeobuf.FlatGeobufDataStoreFactory;

/** private: (define)
* module = workspace
Expand All @@ -13,13 +14,13 @@ var FlatgeobufDataStoreFactory = Packages.org.geotools.data.flatgeobuf.Flatgeobu
var prepConfig = function(config) {
if (config) {
if (typeof config === "string") {
config = {'flatgeobuf-file': config};
config = {'url': config};
}
if (!(typeof config.file === "string")) {
throw "Flatgeobuf config must include file path.";
}
config = {
'flatgeobuf-file': String(config.file)
'url': String(URLs.fileToUrl(UTIL.toFile(config.file)))
};
}
return config;
Expand Down Expand Up @@ -53,7 +54,7 @@ var Flatgeobuf = UTIL.extend(Workspace, {
* Create the underlying store for the workspace.
*/
_create: function(config) {
var factory = new FlatgeobufDataStoreFactory();
var factory = new FlatGeobufDataStoreFactory();
return factory.createDataStore(config);
},

Expand Down

0 comments on commit ac58f2b

Please sign in to comment.