Commit Graph

8 Commits

Author SHA1 Message Date
Kelton Manzanares 39fe6292a3
updating shapefile.js .shp file for Safari compatibility 2020-02-10 18:29:23 -06: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 c576d55289 Merge branch 'support-for-points' into file-reader-support 2013-09-09 17:06:21 -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
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
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