public static FishingTripAndGearRetrievalTracks MapTrackCTX(CTXFileSummaryView ctx) { if (ctx.TrackpointsCount != null && ctx.TrackpointsCount > 0) { var result = ShapefileFactory.CreateTripAndHaulsFromCTX(ctx); if (result != null) { MapLayersHandler.AddLayer(result.TripShapefile, "CTX track", uniqueLayer: true, layerKey: result.TripShapefile.Key, rejectIfExisting: true); } return(result); } return(null); }