您好,请参考以下示例代码:
OSGBVectorCacheBuilder cacheBuilder = new OSGBVectorCacheBuilder();
ArrayList<DatasetSetting> datasetSettings = new ArrayList<>();
DatasetSetting setting = new DatasetSetting();
setting.setDataset(datasetVector);
setting.setUserIDField("SmID");
datasetSettings.add(setting);
cacheBuilder.setDatasetSettingArray(datasetSettings);
cacheBuilder.setFileType(CacheFileType.S3MB);
cacheBuilder.setS3MVersion(S3MVersion.VERSION_20);
cacheBuilder.setCacheName("testaaaa");
cacheBuilder.setOutputFolder("C:\\Users\\Administrator\\Desktop\\test");
GeoStyle3D style3D=new GeoStyle3D();
style3D.setFillForeColor(new Color(0,0,255));
style3D.setMarkerSize(100);
cacheBuilder.setUserDefStyle3D(style3D);
Boolean flag = cacheBuilder.build();
System.out.println(flag);