1
0
mirror of https://github.com/wavded/js-shapefile-to-geojson synced 2024-11-23 14:34:54 +00:00
Commit Graph

4 Commits

Author SHA1 Message Date
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
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
Marc Harter
8296e85e27 !-fixed issue w/ polygon holes, new testdata 2010-08-14 13:20:00 -05:00
Marc Harter
e0aa06ff45 *-initial commit 2010-07-30 17:25:21 -05:00