Commit Graph

34 Commits

Author SHA1 Message Date
Marc Harter 9e768b8608
Update to file handling for Safari compatibility
PR: https://github.com/wavded/js-shapefile-to-geojson/pull/26
2020-02-11 09:00:07 -06:00
Kelton Manzanares 206ea6d789
updating dbf.js .dbf file for Safari compatibility 2020-02-10 18:30:19 -06:00
Kelton Manzanares 39fe6292a3
updating shapefile.js .shp file for Safari compatibility 2020-02-10 18:29:23 -06:00
Marc Harter 127facc607
Fix precision loss
PR: https://github.com/wavded/js-shapefile-to-geojson/pull/22
2020-01-22 13:43:03 -06:00
田至伟 24467d76fd fix a problem of precision loss.
the previous code on reading floating point number will cause a precision loss on centimeters, found it when using.
2016-11-22 23:38:59 +08:00
Chad Burt 6ee60833bc Added trailing comma to js files.
The lack of trailing commas in these module definitions
were causing exceptions when concatenated with other js
files.
2013-09-12 09:28:24 -07:00
Chad Burt 2afcdf97d1 Added package.json file
Can be used for dependency management in npm-based
workflows. To use, add the following in another
project's package.json:

  "js-shapefile-to-geojson": "git://github.com/wavded/js-shapefile-to-geojson.git"
2013-09-12 09:22:18 -07:00
Marc Harter caaf49ad47 Merge branch 'file-reader-support' of git://github.com/mcclintock-lab/js-shapefile-to-geojson 2013-09-09 22:08:42 -05:00
Chad Burt c576d55289 Merge branch 'support-for-points' into file-reader-support 2013-09-09 17:06:21 -07:00
Chad Burt e2c21c36c9 merging 2013-09-09 17:06:08 -07:00
Chad Burt 8da264ae24 Add support for loading via File API
Shapefile and DBF constructors now support referencing files
via both url and a HTML 5 File API handle. This can be used
to load and map content added to file input(s) and processed
on the client browser.

FileReader and FileReaderSync are both used depending upon
availability to make this functionality work in both Gecko
and Webkit inside Web Workers.
2013-09-09 17:01:36 -07:00
Marc Harter ad2ca227e8 Merge pull request #11 from mcclintock-lab/add-worker-jsroot
Add jsRoot constructor option
2013-09-09 16:38:29 -07:00
Marc Harter da6c4a8cf3 Merge pull request #10 from mcclintock-lab/support-for-points
Fixed support for Point datasets
2013-09-09 16:37:35 -07:00
Marc Harter 0a4e415daa Merge pull request #9 from mcclintock-lab/complete-when-missing-dbf
Ensuring callback provided to Shapefile constructor is executed even if a dbf file is not provided
2013-09-09 16:37:11 -07:00
Chad Burt c4cf216ec4 Add jsRoot constructor option
Workers were being constructed with a hardcoded path of
'shapefile.js'. The new jsRoot option can be used to
specify an alternate location. For example:

  shapefile = new Shapefile({
      shp: "testdata/world.shp",
      dbf: "testdata/world.dbf",
      jsRoot: '/js-shapefile-to-geojson/'
  }, function(data) ...
2013-09-09 16:07:10 -07:00
Chad Burt 825ce8af25 Fixed support for Point datasets
While some support existed, an attempt was being
made to create an unnecessary(?) bounding box for
each point feature. Also swapped access of the x,y
coordinates from record.geometry.x|y to record.x|y.
2013-09-09 15:45:38 -07:00
Chad Burt 30d3272537 Ensuring callback provided to Shapefile constructor is executed even if a dbf file is not provided 2013-09-09 15:30:01 -07:00
Marc Harter db9bfd55d8 updated; code samples 2013-08-26 16:58:35 -05:00
Marc Harter 907d16da83 updated; usage instructions 2013-08-25 22:20:33 -05:00
Marc Harter 0b14898be1 fix; examples 2013-05-30 09:14:59 -05:00
Marc Harter 15d4978fcd Merge branch 'master' of github.com:wavded/js-shapefile-to-geojson 2011-05-04 12:24:52 -05:00
Marc Harter 5b20baa150 added github fork 2011-05-04 12:21:54 -05:00
Marc Harter e05a52b268 *-added license 2010-11-16 07:39:07 -08:00
Marc Harter 07f2546d2c *-demo page 2010-08-14 13:52:01 -05:00
Marc Harter 8296e85e27 !-fixed issue w/ polygon holes, new testdata 2010-08-14 13:20:00 -05:00
Marc Harter b80bafe3f8 *-cleaned up test page and data 2010-07-31 11:47:07 -05:00
Marc Harter f9304dbd3c updated readme 2010-07-31 11:30:10 -05:00
Marc Harter c43b503053 updated readme 2010-07-31 09:11:59 -07:00
Marc Harter 6b2ec7a2cc *-updated readme 2010-07-30 22:52:17 -05:00
Marc Harter b9ce173e5e some cleanup 2010-07-30 22:50:30 -05:00
Marc Harter af76c79cdb updated readme 2010-07-30 22:48:54 -05:00
Marc Harter 20673a3fa5 updated readme 2010-07-30 17:36:39 -05:00
Marc Harter e0aa06ff45 *-initial commit 2010-07-30 17:25:21 -05:00
Marc Harter 4e899077df first commit 2010-07-30 17:23:56 -05:00