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

23 Commits

Author SHA1 Message Date
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
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