[ncl-talk] Problem adding shapefile
Rick Brownrigg
brownrig at ucar.edu
Thu Dec 5 15:06:40 MST 2019
Hi,
A couple of things:
i) where did you get your copy of NCL? Shapefile support is optional,
although it is enabled in all binaries built by the NCL team.
ii) shape*file* is un unfortunate misnomer -- its really a collection of
3-6 files that work in tandem. Minimally for NCL, the xxxx.shp, xxxx.shx,
anbd xxxx.dbf files must be present in the same directory
iii) if you can send your shapefiles to me (you can directly email me),
I'll take a look
Rick
On Thu, Dec 5, 2019 at 2:34 PM Soumik Basu via ncl-talk <ncl-talk at ucar.edu>
wrote:
> Hi,
>
> I am trying to add a shapefile to a wrf contour map plot. For some reason
> I could not read the .shp file with ncl. I am attaching the code I am
> using. I have all of them in the same directory as the NCL code like it
> said in the shapefile examples. I downloaded the shapefiles for Canada from
> gadm.org website.
>
> Can anybody please tell me what am I doing wrong to read the shapefile.
>
> warning:_NclOpenFile: Can not open file <gadm36_CAN_3.shp>; file format
> not supported or file is corrupted
> (0) Error: gsn_add_shapefile_polylines: Can't open shapefile
> 'gadm36_CAN_3.shp'
> (0) No shapefile information will be added.
> I can open the shapefile with QGIS so nothing is wrong with it most
> likely.
>
> Thanks,
> Soumik
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191205/26d945fd/attachment.html>
More information about the ncl-talk
mailing list