mbostock / shapefile

A cross-platform streaming parser for the ESRI Shapefile spatial data format.
Other
790 stars 153 forks source link

It does not support uppercase SHP extention #46

Open mickeyjohn opened 6 years ago

mickeyjohn commented 6 years ago

Hi,

I found that shape.open() method emits error for upper shapefile. For example: path = "/user/TEST_002.SHP";

It emits error message:

​​​​​{ [Error: ENOENT: no such file or directory, open '/user/TEST_002.SHP.shp']​​​​​ ​​​​​ errno: -2,​​​​​ ​​​​​ code: 'ENOENT',​​​​​ ​​​​​ syscall: 'open',​​​​​ ​​​​​ path: '/user/TEST_002.SHP.shp' }​​​​​

Do you think It is a good idea to make the library support uppercase extension ?

chadam189 commented 3 years ago

Also ran into this issue