Thanks to Tom Carden's javascript functions from his shapefile-js project and the new HTML5 local file access API, it is very easy to load and render any shapefile stored in the client's device.
You can test it here.
If you don't have a shapefile close at hand, get one of these: [China], [Europe], [South America], [United States].
Comments:
Wow Juan Lucas, that's
Dom, 11/12/2011 - 19:43 — jsanzWow Juan Lucas, that's really interesting.
It works perfectly on Firefox on my Linux box with a 2MB shp.
And also quite fast with
Lun, 12/12/2011 - 09:18 — Andrés (no verificado)And also quite fast with medium size shapes. What bother me is that Java -unlike C++/Qt with webkit renderer engine- has not good support for HTML5/Javascript (AFAIK there is not a mature widget working clossplatform). Wouldn't be nice to have a preview of your shapes in gvSIG before loading them? That would be utterly easy with good HTML5/Javascript support :)
Ubuntu 11.04 + Chromium
Lun, 12/12/2011 - 12:13 — fpuga (no verificado)Ubuntu 11.04 + Chromium 15.0.874.106
Lo he probado con un shape de 88MB y 37000 features. Es muy rápido. Buen trabajo.
Miguel Montesinos Hi
Lun, 12/12/2011 - 12:16 — mmontesinosMiguel Montesinos
Hi Juan,
the speed is really impressive! even with a 6 MB polygon shapefile (on Chrome).
Nice job, Juan Lucas. It
Lun, 12/12/2011 - 13:24 — Antonio Falciano (no verificado)Nice job, Juan Lucas. It works like a charm!
Cheers,
Antonio
Wow, it's very nice, great
Jue, 15/12/2011 - 13:31 — Victor Centella (no verificado)Wow, it's very nice, great job!
Victor
Enviar un comentario nuevo