IlvS57Reader
instance
from the path of the S57 cell or catalog. Note that if the file name
ends with 000, it will point to a single S57 cell. If it ends with
030, it will point to a S57 catalog that merges many S57 cells: String s57path = "C:/S57/sxx.000"; IlvS57Reader S57Reader = new IlvS57Reader(s57path);
S57Reader.setFeatureClassFilter (new IlvFeatureClassInformation("Roads","116"));
IlvFeatureRenderer renderer = new IlvDefaultFeatureRenderer();
IlvMapFeature feature = S57Reader.getNextFeature(); while(feature != null) { // Render map feature into graphic object IlvGraphic graphic = renderer.makeGraphic(feature,null); // Add this object on the first layer of the manager manager.addObject(graphic, 0, false); feature = S57Reader.getNextFeature(); }