用geotools在内存新建一个layer并显示

通常是通过读取某个shp文件,将shp中的图层显现出来,如下:n File file = JFileDataStoreChooser.showOpenFile(“shp”, null);n if (file == null) n return;n nn FileDataStore store = FileDataStoreFin